TextDecoration.PenThicknessUnit 属性

定义

获取用于表示文本修饰的 ThicknessPen 的单位。

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

属性值

TextDecorationUnit

用于表示文本修饰的 ThicknessPen 的单位。 默认值为 FontRecommended

示例

下面的代码示例演示如何设置 PenThicknessUnit 属性。

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

注解

依赖项属性信息

标识符字段 PenThicknessUnitProperty
元数据属性设置为 true

适用于