HorizontalAlignment
Last updated
Was this helpful?
Last updated
Was this helpful?
HorizontalAlignment determines how the text aligns itself according to the Text's X position. By default text is left justified, so the left side of the first letter will be placed at the Text's X value.
The Text object's X value marks the left side of the text object by default - that is, text is left justified by default. This justification or alignment can be changed. The following code creates three text objects with different HorizontalAlignment.
The dotted line above shows the X position of the Text objects.