Class TextDecoration
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
StrokeDashArrayProperty
Defines the StrokeDashArray property.
public static readonly StyledProperty<AvaloniaList<double>?> StrokeDashArrayProperty
Field Value
StrokeDashOffsetProperty
Defines the StrokeDashOffset property.
public static readonly StyledProperty<double> StrokeDashOffsetProperty
Field Value
StrokeLineCapProperty
Defines the StrokeLineCap property.
public static readonly StyledProperty<PenLineCap> StrokeLineCapProperty
Field Value
StrokeOffsetProperty
Defines the StrokeOffset property.
public static readonly StyledProperty<double> StrokeOffsetProperty
Field Value
StrokeOffsetUnitProperty
Defines the StrokeOffsetUnit property.
public static readonly StyledProperty<TextDecorationUnit> StrokeOffsetUnitProperty
Field Value
StrokeProperty
Defines the Stroke property.
public static readonly StyledProperty<IBrush?> StrokeProperty
Field Value
StrokeThicknessProperty
Defines the StrokeThickness property.
public static readonly StyledProperty<double> StrokeThicknessProperty
Field Value
StrokeThicknessUnitProperty
Defines the StrokeThicknessUnit property.
public static readonly StyledProperty<TextDecorationUnit> StrokeThicknessUnitProperty
Field Value
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
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
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
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
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
StrokeThickness
Gets or sets the thickness of the TextDecoration.
public double StrokeThickness { get; set; }
Property Value
StrokeThicknessUnit
Gets the units in which the thickness of the TextDecoration is expressed.
public TextDecorationUnit StrokeThicknessUnit { get; set; }