Table of Contents

Enum TextAlign

Namespace
Xui.Core.Canvas
Assembly
Core.dll

Specifies the horizontal alignment of text relative to the drawing position. Mirrors the textAlign property in the HTML5 Canvas 2D API.

public enum TextAlign

Fields

Center = 4

Centers the text horizontally around the drawing position.

End = 1

Aligns text to the end of the writing direction (right for LTR, left for RTL).

Left = 2

Aligns text to the left, regardless of writing direction.

Right = 3

Aligns text to the right, regardless of writing direction.

Start = 0

Aligns text to the start of the writing direction (left for LTR, right for RTL).