TextAlignment Enumeration
Defines how text is aligned.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public enum TextAlignment
Public Enumeration TextAlignment
type TextAlignment
Members
Left | 0 | The text is left-aligned. |
Center | 1 | The text is centered. |
Right | 2 | The text is right-aligned. |
Start | 3 | The beginning of the text is aligned to the edge of the available space. |
End | 4 | The end of the text is aligned to the edge of the available space. |
DetectFromContent | 5 | Text alignment is inferred from the text content. |
Justify | 6 | Text is justified within the available space. |