通过


TextDecoration.PenOffsetUnit 属性

定义

获取表示值的单位 PenOffset

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

属性值

表示值的单位 PenOffset 。 默认值为 FontRecommended

示例

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

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

注解

Dependency 属性信息

物品 价值
标识符字段 PenOffsetUnitProperty
元数据属性设置为 true 没有

适用于