Skip to main content

TextDecorationUnit Enum

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia
public enum TextDecorationUnit

Inheritance: Enum -> TextDecorationUnit

Fields

NameDescription
FontRecommendedA 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.
FontRenderingEmSizeA 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.
PixelA 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