TextDecorationUnit TextDecorationUnit TextDecorationUnit TextDecorationUnit Enum

定義

TextDecorationPenOffset または Pen の太さの値の単位型を指定します。Specifies the unit type of either a TextDecorationPenOffset or a Pen thickness value.

public enum class TextDecorationUnit
public enum TextDecorationUnit
type TextDecorationUnit = 
Public Enum TextDecorationUnit
継承
TextDecorationUnitTextDecorationUnitTextDecorationUnitTextDecorationUnit

フィールド

FontRecommended FontRecommended FontRecommended FontRecommended 0

TextDecoration で使用するフォントに対して相対的な単位値。A unit value that is relative to the font used for the TextDecoration. 装飾が複数のフォントにわたる場合は、平均推奨値が計算されます。If the decoration spans multiple fonts, an average recommended value is calculated. これが既定値です。This is the default value.

FontRenderingEmSize FontRenderingEmSize FontRenderingEmSize FontRenderingEmSize 1

フォントの全角サイズに対して相対的な単位値。A unit value that is relative to the em size of the font. オフセットまたは太さの値は、フォントの全角サイズを掛け合わせたオフセットまたは太さの値に相当します。The value of the offset or thickness is equal to the offset or thickness value multiplied by the font em size.

Pixel Pixel Pixel Pixel 2

ピクセルで表される単位値。A unit value that is expressed in pixels.

次の例は、設定する方法を示します、PenThicknessUnitピクセル プロパティ。The following example shows how to set the PenThicknessUnit property to 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.
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" />

適用対象