fill Property (AnnContainer)

Summary

Gets or sets the object to use when filling the interior of this AnnContainer.

Syntax

JavaScript Syntax
Object.defineProperty(AnnContainer.prototype, 'fill', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
fill: AnnBrush;

Property Value

The object to use when filling the interior of this AnnContainer. The default value is null.

Remarks

A value of null means do not fill the background of the container.

Example

This example will give the container a blue border with thickness of 2 and a semi-transparent brush.

JavaScript Example
example: function SiteLibrary_DefaultPage$example() { 
   // Get the container in the automation object 
   var container = this._automation.get_container(); 
 
   // Add a blue border 
   container.set_stroke(lt.Annotations.Core.AnnStroke.create(lt.Annotations.Core.AnnSolidColorBrush.create("blue"), lt.LeadLengthD.create(2))); 
   // Add semi transparent black background 
   container.set_fill(lt.Annotations.Core.AnnSolidColorBrush.create("rgba(0, 0, 0, 0.5)")); 
 
   // Show it 
   this._automation.invalidate(lt.LeadRectD.get_empty()); 
}, 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations.Core Assembly
Click or drag to resize