Set the text alignment
- Last UpdatedJul 05, 2024
- 2 minute read
You can change the horizontal and vertical positioning of text within a text box element or button element.
You can also change the positioning for a text element. If the text is modified at design time or run time, the alignment sets how the element boundary changes to fit around the modified text.
You can also set the text alignment in the Properties Editor by setting the Alignment property.
If the element is a text box or a button, then the text is aligned accordingly.
If the element is a text element and you then modify the text at design time or run time, the text is anchored to the point of alignment.
-
Text right alignments move additional text further over to the left.
-
Text left alignments move additional text to the right.
-
Changes in font size leave the point of alignment unchanged and modify the frame accordingly.
To set the text alignment
-
Select a text element, text box element or button element on the canvas.
-
On the Format menu, point to Text Alignment, and then click the appropriate command:
Click this command
To
Top Left
Align the text at the top left frame handle.
Top Center
Align the text at the top middle frame handle.
Top Right
Align the text at the top right frame handle.
Middle Left
Align the text at the middle left frame handle.
Middle Center
Align the text in the middle of the element.
Middle Right
Align the text at the middle right frame handle.
Bottom Left
Align the text at the bottom left frame handle.
Bottom Center
Align the text at the bottom center frame handle.
Bottom Right
Align the text at the bottom right frame handle.