LEADTOOLS JavaScript (Leadtools.Annotations.Core)
LEAD Technologies, Inc

Fill Property (AnnContainer)

Example 

Gets or sets the object to use when filling the interior of this AnnContainer.
Syntax
  get_fill();
 set_fill(value);
!MISSING Scrap '_RTJavaScript_PROPERTY_SYNTAX'!

Property Value

TypeDescription
AnnBrushThe 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
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(Leadtools.Annotations.Core.AnnStroke.create(Leadtools.Annotations.Core.AnnSolidColorBrush.create("blue"), Leadtools.LeadLengthD.create(2)));
   // Add semi transparent black background
   container.set_fill(Leadtools.Annotations.Core.AnnSolidColorBrush.create("rgba(0, 0, 0, 0.5)"));

   // Show it
   this._automation.invalidate(Leadtools.LeadRectD.get_empty());
},
See Also

Reference

AnnContainer Object
AnnContainer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.