LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
Stroke Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObject Class : Stroke Property



The Stroke Property supports WPF/Silverlight.

The Stroke Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the System.Windows.Media.Color associated with this AnnObject to draw this object's outline. This is a dependency property.Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property Stroke As Color
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Color
 
instance.Stroke = value
 
value = instance.Stroke
C# 
public Color Stroke {get; set;}
C++/CLI 
public:
property Color Stroke {
   Color get();
   void set (    Color value);
}

Property Value

A Color that specifies how the AnnObject outline is painted. The default is System.Windows.Media.Colors.Red.

Example

For XAML example, refer to AnnPolygonObject.

For C#/VB examples, refer to AnnAutomationManager.

Remarks

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

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

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.