Table of Contents

Class TextDecoration

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Represents a text decoration, which is a visual ornamentation that is added to text (such as an underline).

public class TextDecoration : AvaloniaObject, INotifyPropertyChanged
Inheritance
TextDecoration
Implements
Inherited Members
Extension Methods

Constructors

TextDecoration()

public TextDecoration()

Fields

LocationProperty

Defines the Location property.

public static readonly StyledProperty<TextDecorationLocation> LocationProperty

Field Value

StyledProperty<TextDecorationLocation>

StrokeDashArrayProperty

Defines the StrokeDashArray property.

public static readonly StyledProperty<AvaloniaList<double>?> StrokeDashArrayProperty

Field Value

StyledProperty<AvaloniaList<double>>

StrokeDashOffsetProperty

Defines the StrokeDashOffset property.

public static readonly StyledProperty<double> StrokeDashOffsetProperty

Field Value

StyledProperty<double>

StrokeLineCapProperty

Defines the StrokeLineCap property.

public static readonly StyledProperty<PenLineCap> StrokeLineCapProperty

Field Value

StyledProperty<PenLineCap>

StrokeOffsetProperty

Defines the StrokeOffset property.

public static readonly StyledProperty<double> StrokeOffsetProperty

Field Value

StyledProperty<double>

StrokeOffsetUnitProperty

Defines the StrokeOffsetUnit property.

public static readonly StyledProperty<TextDecorationUnit> StrokeOffsetUnitProperty

Field Value

StyledProperty<TextDecorationUnit>

StrokeProperty

Defines the Stroke property.

public static readonly StyledProperty<IBrush?> StrokeProperty

Field Value

StyledProperty<IBrush>

StrokeThicknessProperty

Defines the StrokeThickness property.

public static readonly StyledProperty<double> StrokeThicknessProperty

Field Value

StyledProperty<double>

StrokeThicknessUnitProperty

Defines the StrokeThicknessUnit property.

public static readonly StyledProperty<TextDecorationUnit> StrokeThicknessUnitProperty

Field Value

StyledProperty<TextDecorationUnit>

Properties

Location

Gets or sets the location.

public TextDecorationLocation Location { get; set; }

Property Value

TextDecorationLocation

The location.

Stroke

Gets or sets the IBrush that specifies how the TextDecoration is painted.

public IBrush? Stroke { get; set; }

Property Value

IBrush

StrokeDashArray

Gets or sets a collection of double values that indicate the pattern of dashes and gaps that is used to draw the TextDecoration.

public AvaloniaList<double>? StrokeDashArray { get; set; }

Property Value

AvaloniaList<double>

StrokeDashOffset

Gets or sets a value that specifies the distance within the dash pattern where a dash begins.

public double StrokeDashOffset { get; set; }

Property Value

double

StrokeLineCap

Gets or sets a PenLineCap enumeration value that describes the shape at the ends of a line.

public PenLineCap StrokeLineCap { get; set; }

Property Value

PenLineCap

StrokeOffset

The stroke's offset.

public double StrokeOffset { get; set; }

Property Value

double

The pen offset.

StrokeOffsetUnit

Gets the units in which the StrokeOffset value is expressed.

public TextDecorationUnit StrokeOffsetUnit { get; set; }

Property Value

TextDecorationUnit

StrokeThickness

Gets or sets the thickness of the TextDecoration.

public double StrokeThickness { get; set; }

Property Value

double

StrokeThicknessUnit

Gets the units in which the thickness of the TextDecoration is expressed.

public TextDecorationUnit StrokeThicknessUnit { get; set; }

Property Value

TextDecorationUnit