TextDecoration Class
Represents a text decoration, which is a visual ornamentation that is added to text (such as an underline).
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public class TextDecoration : AvaloniaObject
Public Class TextDecoration
Inherits AvaloniaObject
type TextDecoration =
class
inherit AvaloniaObject
end
Inheritance | Object → AvaloniaObject → TextDecoration |
Constructors
TextDecoration() | Initializes a new instance of the TextDecoration class |
Properties
InheritanceParent | Gets or sets the parent object that inherited AvaloniaProperty values are inherited from. (Inherited from AvaloniaObject) |
Item(AvaloniaProperty) | Gets or sets the value of a AvaloniaProperty. (Inherited from AvaloniaObject) |
Item(IndexerDescriptor) | Gets or sets a binding for a AvaloniaProperty. (Inherited from AvaloniaObject) |
Location | Gets or sets the location. |
Stroke | Gets or sets the IBrush that specifies how the TextDecoration is painted. |
StrokeDashArray | Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to draw the TextDecoration. |
StrokeDashOffset | Gets or sets a value that specifies the distance within the dash pattern where a dash begins. |
StrokeLineCap | Gets or sets a PenLineCap enumeration value that describes the shape at the ends of a line. |
StrokeOffset | The stroke's offset. |
StrokeOffsetUnit | Gets the units in which the StrokeOffset value is expressed. |
StrokeThickness | Gets or sets the thickness of the TextDecoration. |
StrokeThicknessUnit | Gets the units in which the thickness of the TextDecoration is expressed. |
Methods
Events
PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
LocationProperty | Defines the Location property. |
StrokeDashArrayProperty | Defines the StrokeDashArray property. |
StrokeDashOffsetProperty | Defines the StrokeDashOffset property. |
StrokeLineCapProperty | Defines the StrokeLineCap property. |
StrokeOffsetProperty | Defines the StrokeOffset property. |
StrokeOffsetUnitProperty | Defines the StrokeOffsetUnit property. |
StrokeProperty | Defines the Stroke property. |
StrokeThicknessProperty | Defines the StrokeThickness property. |
StrokeThicknessUnitProperty | Defines the StrokeThicknessUnit property. |