Pen.DashStyle 屬性

定義

取得或設定樣式,用於以這個 Pen 所繪製的短折線。

public:
 property System::Drawing::Drawing2D::DashStyle DashStyle { System::Drawing::Drawing2D::DashStyle get(); void set(System::Drawing::Drawing2D::DashStyle value); };
public System.Drawing.Drawing2D.DashStyle DashStyle { get; set; }
member this.DashStyle : System.Drawing.Drawing2D.DashStyle with get, set
Public Property DashStyle As DashStyle

屬性值

DashStyle,表示以這個 Pen 所繪製之短折線所用的樣式。

例外狀況

DashStyle 屬性設定於不可變動的 Pen 上,例如 Pens 類別傳回的項目。

備註

這個屬性的 值 Custom 會指定由 屬性定義的 DashPattern 虛線和空格自訂圖樣,組成以這個 Pen 繪製的線條。 如果這個屬性的值是 Custom ,而 屬性的值 DashPatternnull ,則畫筆會繪製實線。

適用於