Class Inline
Inline element.
public abstract class Inline : TextElement, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed
- Inheritance
-
Inline
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Inline()
protected Inline()
Fields
BaselineAlignmentProperty
AvaloniaProperty for BaselineAlignment property.
public static readonly StyledProperty<BaselineAlignment> BaselineAlignmentProperty
Field Value
TextDecorationsProperty
AvaloniaProperty for TextDecorations property.
public static readonly StyledProperty<TextDecorationCollection?> TextDecorationsProperty
Field Value
Properties
BaselineAlignment
Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.
public BaselineAlignment BaselineAlignment { get; set; }
Property Value
TextDecorations
The TextDecorations property specifies decorations that are added to the text of an element.
public TextDecorationCollection? TextDecorations { get; set; }
Property Value
Methods
CreateTextRunProperties()
protected TextRunProperties CreateTextRunProperties()
Returns
GetTextDecorations(Control)
Gets the value of the attached TextDecorationsProperty on a control.
public static TextDecorationCollection? GetTextDecorations(Control control)
Parameters
control
ControlThe control.
Returns
- TextDecorationCollection
The font style.
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.
SetTextDecorations(Control, TextDecorationCollection?)
Sets the value of the attached TextDecorationsProperty on a control.
public static void SetTextDecorations(Control control, TextDecorationCollection? value)
Parameters
control
ControlThe control.
value
TextDecorationCollectionThe property value to set.