Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Fill Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : Fill Property





Gets or sets the Brush associated with this AnnObjectBase to fill this object geometry. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Fill As Brush
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim value As Brush
 
instance.Fill = value
 
value = instance.Fill
C# 
public Brush Fill {get; set;}
C++/CLI 
public:
property Brush Fill {
   Brush get();
   void set (Brush value);
}
XAML Syntax 
For XAML information, see the System.Windows.Media.Brush type.

Dependencies Property Information 

Identifier field

FillProperty

Metadata properties set to true

AffectsMeasure, AffectsRender, SubPropertiesDoNotAffectRender

XAML Syntax 
For XAML information, see the System.Windows.Media.Brush type.

Dependencies Property Information 

Identifier field

FillProperty

Metadata properties set to true

AffectsMeasure, AffectsRender, SubPropertiesDoNotAffectRender

Return Value

A Brush that describes how the interior of the AnnObjectBase is painted. The default is a null reference (Nothing in Visual Basic).

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnObjectBase.

Remarks

If this AnnObjectBase does not support fill (AnnObjectBase.SupportsFill value is false), this property will always return null (Nothing in Visual Basic).

If this AnnObjectBase does not support fill (AnnObjectBase.SupportsFill value is false), setting this property to any value will be ignoreed.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

Fill requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.