Leadtools.Windows.Annotations Namespace > AnnObject Class : Stroke Property |
public Color Stroke {get; set;}
'Declaration Public Property Stroke As Color
public Color Stroke {get; set;}
get_Stroke();
set_Stroke(value);
The Stroke and StrokeBrush properties work in the following manner:
If StrokeBrush is set to null, then the value of Stroke is used to draw this object's outline.
If StrokeBrush is set to a valid object, then this value is used to draw the object's outline and the value of Stroke is ignored.
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.
For XAML example, refer to AnnPolygonObject.
For C#/VB examples, refer to AnnAutomationManager.
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