Shape.StrokeDashArray 屬性

定義

取得或設定 Double 值的集合,這些值表示用來畫出圖案外框之虛線和間隙的模式。

public:
 property System::Windows::Media::DoubleCollection ^ StrokeDashArray { System::Windows::Media::DoubleCollection ^ get(); void set(System::Windows::Media::DoubleCollection ^ value); };
public System.Windows.Media.DoubleCollection StrokeDashArray { get; set; }
member this.StrokeDashArray : System.Windows.Media.DoubleCollection with get, set
Public Property StrokeDashArray As DoubleCollection

屬性值

DoubleCollection

Double 值的集合,指定虛線和間隙的模式。

備註

Double集合中的每個都指定相對於畫筆的虛線或間距 Thickness 長度。 例如,的值 1 會建立長度與畫筆粗細相同的虛線或間距, (正方形) 。

集合中位於索引 0 的第一個專案會指定虛線的長度;位於索引 1 的第二個專案會指定間距的長度。

具有偶數索引值的物件會指定虛線;具有奇數索引值的物件會指定間距。

適用於

另請參閱