Back to API Reference
Enum
HorizontalAlignment
Specifies horizontal text alignment within the layout bounds.
Remarks
Edges are physical (Left/Right), not logical (Start/End). For RTL paragraphs, the renderer auto-flips so that
Left still produces the natural "start" edge of the RTL line — matching CSS legacy text-align: left | right | center | justify semantics and the Web Selection API direction model.public static readonly HorizontalAlignment Left = 0Align text to the left edge.
public static readonly HorizontalAlignment Center = 1Center text horizontally.
public static readonly HorizontalAlignment Right = 2Align text to the right edge.
public static readonly HorizontalAlignment Justify = 3Stretch each line to fill the full available width by distributing extra space according to TextJustify. The final line of each paragraph is aligned per LastLineAlignment (defaults to start, matching CSS text-align-last: auto).
