LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
Fill Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObject Class : Fill Property



The Fill Property supports WPF/Silverlight.

The Fill Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the System.Windows.Media.Color associated with this AnnObject to fill this object geometry. This is a dependency property.Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property Fill As Color
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Color
 
instance.Fill = value
 
value = instance.Fill
C# 
public Color Fill {get; set;}
C++/CLI 
public:
property Color Fill {
   Color get();
   void set (    Color value);
}

Property Value

A Color that describes how the interior of the AnnObject is painted. The default is System.Windows.Media.Colors.Transparent.

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnObject.

Remarks

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

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

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.