Leadtools.Windows.Annotations Namespace > AnnObject Class : Fill Property |
public Color Fill {get; set;}
'Declaration Public Property Fill As Color
public Color Fill {get; set;}
get_Fill();
set_Fill(value);
The FillBrush and Fill properties work in the following manner:
If FillBrush is set to null, then the value of Fill is used to fill the interior of this object.
If FillBrush is set to a valid object, then this value is used to fill the interior of this object and the value of Fill is ignored.
Fill only supports a solid color while AnnBrush and its derived classes such as AnnLinearGradientBrush supports filling the interior of the object with a linear brush.
To use an AnnObject with a transparent background, set FillBrush to null and Fill to System.Windows.Media.Colors.Transparent. Both of these values are the default for the properties.
If this AnnObject does not support fill (SupportsFill value is false), this property will always return System.Windows.Media.Colors.Transparent and setting this property to any value will be ignored.
For XAML example, refer to AnnPolygonObject.
For C#/VB examples, refer to AnnObject.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2