Modifica

Condividi tramite


TextDecoration.PenThicknessUnit Property

Definition

Gets the units in which the Thickness of the text decoration's Pen is expressed.

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

Property Value

The units in which the Thickness of the text decoration's Pen is expressed. The default is FontRecommended.

Examples

The following code example shows how to set the PenThicknessUnit 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

Dependency Property Information

Item Value
Identifier field PenThicknessUnitProperty
Metadata properties set to true None

Applies to