Skip to main content

TextAlignmentAction Class

Definition

Assembly:Avalonia.Controls.RichTextEditor
Package:Avalonia.Controls.RichTextEditor

Action for setting text alignment on block elements (Paragraph, Section, etc.).

public class TextAlignmentAction

Inheritance: BlockPropertyAction<TextAlignment> -> TextAlignmentAction

Remarks

Text alignment is a block-level property that determines how text is aligned within a paragraph or section. Available options are:

When applied to a selection spanning multiple paragraphs, all affected paragraphs will have their alignment set to the specified value.

Constructors

NameDescription
TextAlignmentActionNo summary available.

TextAlignmentAction Constructor

public TextAlignmentAction()

Methods

NameDescription
GetAvailableValuesNo summary available.

GetAvailableValues Method

public System.Collections.Generic.IEnumerable<Avalonia.Media.TextAlignment> GetAvailableValues()

Returns

System.Collections.Generic.IEnumerable<Avalonia.Media.TextAlignment>

Properties

NameDescription
DisplayNameNo summary available.
GestureNo summary available.
IdNo summary available.

DisplayName Property

public string DisplayName { get; set; }

Gesture Property

public Avalonia.Input.KeyGesture Gesture { get; set; }

Id Property

public string Id { get; set; }