Skip to main content

TextDecoration Class

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

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

public class TextDecoration

Inheritance: object -> AvaloniaObject -> TextDecoration

Constructors

NameDescription
TextDecorationNo summary available.

TextDecoration Constructor

public TextDecoration()

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
LocationGets or sets the location.
StrokeGets or sets the Avalonia.Media.IBrush that specifies how the Avalonia.Media.TextDecoration is painted.
StrokeDashArrayGets or sets a collection of double values that indicate the pattern of dashes and gaps that is used to draw the Avalonia.Media.TextDecoration.
StrokeDashOffsetGets or sets a value that specifies the distance within the dash pattern where a dash begins.
StrokeLineCapGets or sets a Avalonia.Media.PenLineCap enumeration value that describes the shape at the ends of a line.
StrokeOffsetThe stroke's offset.
StrokeOffsetUnitGets the units in which the Avalonia.Media.TextDecoration.StrokeOffset value is expressed.
StrokeThicknessGets or sets the thickness of the Avalonia.Media.TextDecoration.
StrokeThicknessUnitGets the units in which the thickness of the Avalonia.Media.TextDecoration is expressed.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

Location Property

Gets or sets the location.

public Avalonia.Media.TextDecorationLocation Location { get; set; }

Value

The location.

Stroke Property

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

public Avalonia.Media.IBrush Stroke { get; set; }

StrokeDashArray Property

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

public Avalonia.Collections.AvaloniaList<T><double> StrokeDashArray { get; set; }

StrokeDashOffset Property

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

public double StrokeDashOffset { get; set; }

StrokeLineCap Property

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

public Avalonia.Media.PenLineCap StrokeLineCap { get; set; }

StrokeOffset Property

The stroke's offset.

public double StrokeOffset { get; set; }

Value

The pen offset.

StrokeOffsetUnit Property

Gets the units in which the Avalonia.Media.TextDecoration.StrokeOffset value is expressed.

public Avalonia.Media.TextDecorationUnit StrokeOffsetUnit { get; set; }

StrokeThickness Property

Gets or sets the thickness of the Avalonia.Media.TextDecoration.

public double StrokeThickness { get; set; }

StrokeThicknessUnit Property

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

public Avalonia.Media.TextDecorationUnit StrokeThicknessUnit { get; set; }

Fields

LocationProperty Field

Defines the Avalonia.Media.TextDecoration.Location property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.TextDecorationLocation> LocationProperty

StrokeDashArrayProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeDashArray property.

public Avalonia.StyledProperty<TValue><Avalonia.Collections.AvaloniaList<T><double>> StrokeDashArrayProperty

StrokeDashOffsetProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeDashOffset property.

public Avalonia.StyledProperty<TValue><double> StrokeDashOffsetProperty

StrokeLineCapProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeLineCap property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.PenLineCap> StrokeLineCapProperty

StrokeOffsetProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeOffset property.

public Avalonia.StyledProperty<TValue><double> StrokeOffsetProperty

StrokeOffsetUnitProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeOffsetUnit property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.TextDecorationUnit> StrokeOffsetUnitProperty

StrokeProperty Field

Defines the Avalonia.Media.TextDecoration.Stroke property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.IBrush> StrokeProperty

StrokeThicknessProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeThickness property.

public Avalonia.StyledProperty<TValue><double> StrokeThicknessProperty

StrokeThicknessUnitProperty Field

Defines the Avalonia.Media.TextDecoration.StrokeThicknessUnit property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.TextDecorationUnit> StrokeThicknessUnitProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.