fill Property

Summary

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

Syntax
TypeScript
JavaScript
Object.defineProperty(AnnContainer.prototype, 'fill', 
	get: function(), 
	set: function(value) 
) 
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.

TypeScript
JavaScript
// Get the container in the automation object 
var container = this._automation.get_container(); 
 
// Add a blue border 
container.set_stroke(lt.Annotations.Engine.AnnStroke.create(lt.Annotations.Engine.AnnSolidColorBrush.create("blue"), lt.LeadLengthD.create(2))); 
// Add semi transparent black background 
container.set_fill(lt.Annotations.Engine.AnnSolidColorBrush.create("rgba(0, 0, 0, 0.5)")); 
 
// Show it 
this._automation.invalidate(lt.LeadRectD.get_empty()); 
// Get the container in the automation object 
const container: lt.Annotations.Engine.AnnContainer = this._automation.container; 
 
// Add a blue border 
container.stroke = lt.Annotations.Engine.AnnStroke.create(lt.Annotations.Engine.AnnSolidColorBrush.create("blue"), lt.LeadLengthD.create(2)); 
// Add semi transparent black background 
container.fill = lt.Annotations.Engine.AnnSolidColorBrush.create("rgba(0, 0, 0, 0.5)"); 
 
// Show it 
this._automation.invalidate(lt.LeadRectD.empty); 

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly