TextDecoration.PenOffsetUnit Property

Definition

Ruft die Einheiten ab, in denen der PenOffset-Wert ausgedrückt wird.Gets the units in which the PenOffset value is expressed.

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

Property Value

TextDecorationUnit

Die Einheiten, in denen der PenOffset-Wert ausgedrückt wird.The units in which the PenOffset value is expressed. Der Standardwert lautet FontRecommended.The default is FontRecommended.

Examples

Im folgenden Codebeispiel wird veranschaulicht, wie die PenOffsetUnit-Eigenschaft festgelegt wird.The following code example shows how to set the PenOffsetUnit property.

// 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" />

Remarks

Informationen zur AbhängigkeitseigenschaftDependency Property Information

BezeichnerfeldIdentifier field PenOffsetUnitProperty
Metadateneigenschaften auf true festgelegtMetadata properties set to true KeineNone

Applies to