TextDecoration.PenOffsetUnit Vlastnost

Definice

Získá jednotky, ve kterých PenOffset je hodnota vyjádřena.

public:
 property System::Windows::TextDecorationUnit PenOffsetUnit { System::Windows::TextDecorationUnit get(); void set(System::Windows::TextDecorationUnit value); };
public System.Windows.TextDecorationUnit PenOffsetUnit { get; set; }
member this.PenOffsetUnit : System.Windows.TextDecorationUnit with get, set
Public Property PenOffsetUnit As TextDecorationUnit

Hodnota vlastnosti

TextDecorationUnit

Jednotky, ve kterých PenOffset je hodnota vyjádřena. Výchozí formát je FontRecommended.

Příklady

Následující příklad kódu ukazuje, jak nastavit PenOffsetUnit vlastnost.

// Move the text decoration lower using pixel value units.
myUnderline.PenOffset = 2;
myUnderline.PenOffsetUnit = TextDecorationUnit.Pixel;
myUnderline.PenThicknessUnit = TextDecorationUnit.Pixel;
' Move the text decoration lower using pixel value units.
myUnderline.PenOffset = 2
myUnderline.PenOffsetUnit = TextDecorationUnit.Pixel
myUnderline.PenThicknessUnit = TextDecorationUnit.Pixel
<!-- Move the text decoration lower using pixel value units. -->
<TextDecoration PenOffset="2" PenOffsetUnit="Pixel" PenThicknessUnit="Pixel" />

Poznámky

Informace o vlastnosti závislosti

Pole identifikátoru PenOffsetUnitProperty
Vlastnosti metadat nastavené na true Žádné

Platí pro