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





Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to outline objects. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property StrokeDashArray As DoubleCollection
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim value As DoubleCollection
 
instance.StrokeDashArray = value
 
value = instance.StrokeDashArray
C# 
public DoubleCollection StrokeDashArray {get; set;}
C++/CLI 
public:
property DoubleCollection StrokeDashArray {
   DoubleCollection get();
   void set (DoubleCollection value);
}
XAML Attributes Usage 

<object StrokeDashArray=System.Windows.Media.DoubleCollection .../>

Dependencies Property Information 

Identifier field

StrokeDashArrayProperty

Metadata properties set to true

AffectsMeasure, AffectsRender

XAML Property Element Usage 

<object> <object.StrokeDashArray> <System.Windows.Media.DoubleCollection .../> </object.StrokeDashArray> </object>

XAML Attributes Usage 

<object StrokeDashArray=System.Windows.Media.DoubleCollection .../>

Dependencies Property Information 

Identifier field

StrokeDashArrayProperty

Metadata properties set to true

AffectsMeasure, AffectsRender

XAML Property Element Usage 

<object> <object.StrokeDashArray> <System.Windows.Media.DoubleCollection .../> </object.StrokeDashArray> </object>

Return Value

A collection of Double values that specify the pattern of dashes and gaps.

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), setting this property to any value will be ignoreed.

Each Double in the collection specifies the length of a dash or gap relative to the AnnObjectBase.StrokeThickness of the pen. For example, a value of 1 creates a dash or gap that has the same length as the thickness of the pen (a square). The first item in the collection, which is located at index 0, specifies the length of a dash; the second item, which is located at index 1, specifies the length of a gap. Objects with an even index value specify dashes; objects with an odd index value specify gaps.

Requirements

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

See Also

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