TextDecorationUnit Enum
Definition
Specifies the unit type of either a Avalonia.Media.TextDecoration.StrokeOffset or a Avalonia.Media.TextDecoration.StrokeThickness value.
public enum TextDecorationUnit
Fields
| Name | Description |
|---|---|
| FontRecommended | A unit value that is relative to the font used for the Avalonia.Media.TextDecoration. If the decoration spans multiple fonts, an average recommended value is calculated. This is the default value. |
| FontRenderingEmSize | 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 | A unit value that is expressed in pixels. |
FontRecommended Field
A unit value that is relative to the font used for the Avalonia.Media.TextDecoration. If the decoration spans multiple fonts, an average recommended value is calculated. This is the default value.
public Avalonia.Media.TextDecorationUnit FontRecommended
FontRenderingEmSize Field
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.
public Avalonia.Media.TextDecorationUnit FontRenderingEmSize
Pixel Field
A unit value that is expressed in pixels.
public Avalonia.Media.TextDecorationUnit Pixel