TextAlignment
This enum determines how to align the text when drawing it.
left and top, as well as right and bottom are interchangeable. It means that if you use left for vertical alignment, it will produce exactly the same result as using top, and vice versa. top/bottom are here only for the sake of convenience and readability.
LEFT
Field
Align left. It will mean that the text position's X coordinate is located at the left side of the text area.
CENTER
Field
Align center. It will mean that the text position's X (or Y) coordinate is located at the center of the text area.
RIGHT
Field
Align right. It will mean that the text position's X coordinate is located at the right side of the text area.
TOP
Field
Align top. It will mean that the text position's Y coordinate is located at the top side of the text area.
BOTTOM
Field
Align bottom. It will mean that the text position's Y coordinate is located at the bottom side of the text area.
Last updated