LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

FillBrush Property






Gets or sets the AnnBrush associated with this AnnObject to fill this object geometry. This is a dependency property. .NET support Silverlight support
Syntax
public AnnBrush FillBrush {get; set;}
'Declaration
 
Public Property FillBrush As AnnBrush
'Usage
 
Dim instance As AnnObject
Dim value As AnnBrush
 
instance.FillBrush = value
 
value = instance.FillBrush
public AnnBrush FillBrush {get; set;}
 get_FillBrush();
set_FillBrush(value);
public:
property AnnBrush^ FillBrush {
   AnnBrush^ get();
   void set (    AnnBrush^ value);
}

Property Value

An AnnBrush derived object > that describes how the interior of the AnnObject is painted. The default is null.
Remarks

The FillBrush and Fill properties work in the following manner:

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 null (Nothing in Visual Basic). and setting this property to any value will be ignored.

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnObject.

Requirements

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

See Also

Reference

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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