TextAlignmentAction Class
Definition
Action for setting text alignment on block elements (Paragraph, Section, etc.).
public class TextAlignmentAction
Remarks
Text alignment is a block-level property that determines how text is aligned within a paragraph or section. Available options are:
- Avalonia.Media.TextAlignment.Left - Align text to the left edge
- Avalonia.Media.TextAlignment.Center - Center text
- Avalonia.Media.TextAlignment.Right - Align text to the right edge
- Avalonia.Media.TextAlignment.Justify - Justify text (stretch to fill width)
When applied to a selection spanning multiple paragraphs, all affected paragraphs will have their alignment set to the specified value.
Constructors
| Name | Description |
|---|---|
| TextAlignmentAction | No summary available. |
TextAlignmentAction Constructor
public TextAlignmentAction()
Methods
| Name | Description |
|---|---|
| GetAvailableValues | No summary available. |
GetAvailableValues Method
public System.Collections.Generic.IEnumerable<Avalonia.Media.TextAlignment> GetAvailableValues()
Returns
System.Collections.Generic.IEnumerable<Avalonia.Media.TextAlignment>
Properties
| Name | Description |
|---|---|
| DisplayName | No summary available. |
| Gesture | No summary available. |
| Id | No 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; }