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

StrokeBrush Property






Gets or sets the AnnBrush associated with this AnnObject to draw this object's outline. This is a dependency property. .NET support Silverlight support
Syntax
public AnnBrush StrokeBrush {get; set;}
'Declaration
 
Public Property StrokeBrush As AnnBrush
'Usage
 
Dim instance As AnnObject
Dim value As AnnBrush
 
instance.StrokeBrush = value
 
value = instance.StrokeBrush
public AnnBrush StrokeBrush {get; set;}
 get_StrokeBrush();
set_StrokeBrush(value);
public:
property AnnBrush^ StrokeBrush {
   AnnBrush^ get();
   void set (    AnnBrush^ value);
}

Property Value

A AnnBrush that specifies how the AnnObject outline is painted. The default is null.
Remarks

The Stroke and StrokeBrush properties work in the following manner:

Stroke only supports a solid color while AnnBrush and its derived classes such as AnnLinearGradientBrush supports filling the drawing the outline the object with a linear brush.

To use an AnnObject with a transparent outline, set StrokeBrush to null and Stroke to System.Windows.Media.Colors.Transparent.

If this AnnObject does not support strokes (SupportsStroke value is false), this property will always return the default value and setting this property to any value will be ignored.

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnAutomationManager.

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.