Table of Contents

Enum TextAlignment

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Defines how text is aligned.

public enum TextAlignment

Fields

Center = 1

The text is centered.

DetectFromContent = 5

Text alignment is inferred from the text content.

End = 4

The end of the text is aligned to the edge of the available space.

Justify = 6

Text is justified within the available space.

Left = 0

The text is left-aligned.

Right = 2

The text is right-aligned.

Start = 3

The beginning of the text is aligned to the edge of the available space.