DashStyles 類別

定義

實作一組預先定義的 DashStyle 物件。Implements a set of predefined DashStyle objects.

public ref class DashStyles abstract sealed
public static class DashStyles
type DashStyles = class
Public Class DashStyles
繼承
DashStyles

備註

下圖顯示套用至底線的不同虛線樣式的範例。The following illustration shows examples of different dash styles applied to an underline.

顯示數種不同的虛線樣式Shows several different dash styles.

XAML 文字使用方式XAML Text Usage

您無法在中宣告這個 managed 類別 XAMLXAML ,但是您可以使用其靜態屬性來指派中的值 XAMLXAMLYou cannot declare this managed class in XAMLXAML, but you can use its static properties to assign values in XAMLXAML.

屬性

Dash

取得 DashStyle 屬性等於 2, 2DashesGets a DashStyle with a Dashes property equal to 2, 2.

DashDot

取得 DashStyle 屬性等於 2, 2, 0, 2DashesGets a DashStyle with a Dashes property equal to 2, 2, 0, 2.

DashDotDot

取得 DashStyle 屬性等於 2, 2, 0, 2, 0, 2DashesGets a DashStyle with a Dashes property equal to 2, 2, 0, 2, 0, 2.

Dot

取得 DashStyle 屬性等於 0, 2DashesGets a DashStyle with a Dashes property equal to 0, 2.

Solid

取得具有空白 DashStyle 屬性的 DashesGets a DashStyle with an empty Dashes property.

適用於

另請參閱