Error processing SSI file
LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)

Show in webframe

Stroke Property (AnnObject)






Gets or sets the System.Windows.Media.Color associated with this AnnObject to draw this object's outline. This is a dependency property.
Syntax
public Color Stroke {get; set;}
'Declaration
 
Public Property Stroke As Color
'Usage
 
Dim instance As AnnObject
Dim value As Color
 
instance.Stroke = value
 
value = instance.Stroke

            

            
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.
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

See Also

Reference

AnnObject Class
AnnObject Members

Error processing SSI file
   Leadtools.Windows.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features