Skip to main content

TextAlignment Enumeration

Defines how text is aligned.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public enum TextAlignment
View Source

Members

Left0The text is left-aligned.
Center1The text is centered.
Right2The text is right-aligned.
Start3The beginning of the text is aligned to the edge of the available space.
End4The end of the text is aligned to the edge of the available space.
DetectFromContent5Text alignment is inferred from the text content.
Justify6Text is justified within the available space.

See Also

Reference

Avalonia.Media Namespace