Table of Contents

Class Inline

Namespace
Avalonia.Controls.Documents
Assembly
Avalonia.Controls.dll

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

StyledProperty<BaselineAlignment>

TextDecorationsProperty

AvaloniaProperty for TextDecorations property.

public static readonly StyledProperty<TextDecorationCollection?> TextDecorationsProperty

Field Value

StyledProperty<TextDecorationCollection>

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

BaselineAlignment

TextDecorations

The TextDecorations property specifies decorations that are added to the text of an element.

public TextDecorationCollection? TextDecorations { get; set; }

Property Value

TextDecorationCollection

Methods

CreateTextRunProperties()

protected TextRunProperties CreateTextRunProperties()

Returns

TextRunProperties

GetTextDecorations(Control)

Gets the value of the attached TextDecorationsProperty on a control.

public static TextDecorationCollection? GetTextDecorations(Control control)

Parameters

control Control

The 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 AvaloniaPropertyChangedEventArgs

The 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 Control

The control.

value TextDecorationCollection

The property value to set.