Visual Basic (Declaration) | |
---|---|
Public Property StrokeDashArray As DoubleCollection |
Visual Basic (Usage) | Copy Code |
---|---|
|
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 | |
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 | |
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.For XAML example, refer to AnnPolygonObject.
For C#/VB examples, refer to AnnAutomationManager.
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.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family