Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Stroke Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : Stroke Property





Gets or sets the Brush associated with this AnnObjectBase to draw this object's outline. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Stroke As Brush
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim value As Brush
 
instance.Stroke = value
 
value = instance.Stroke
C# 
public Brush Stroke {get; set;}
C++/CLI 
public:
property Brush Stroke {
   Brush get();
   void set (Brush value);
}
XAML Syntax 
For XAML information, see the System.Windows.Media.Brush type.

Dependencies Property Information 

Identifier field

StrokeProperty

Metadata properties set to true

AffectsMeasure, AffectsRender, SubPropertiesDoNotAffectRender

XAML Syntax 
For XAML information, see the System.Windows.Media.Brush type.

Dependencies Property Information 

Identifier field

StrokeProperty

Metadata properties set to true

AffectsMeasure, AffectsRender, SubPropertiesDoNotAffectRender

Return Value

A Brush that specifies how the AnnObjectBase outline is painted. The default is a null reference (Nothing in Visual Basic).

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnAutomationManager.

Remarks

If this AnnObjectBase does not support strokes (AnnObjectBase.SupportsStroke value is false), this property will always return null (Nothing in Visual Basic).

If this AnnObjectBase does not support strokes (AnnObjectBase.SupportsStroke value is false), setting this property to any value will be ignoreed.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

Stroke requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.