共用方式為


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

適用於