Control Reference > VSPrinter Control > VSPrinter Properties > TextAlign Property (VSPrinter) |
Returns or sets the alignment of printed paragraphs, textboxes, and tables.
[form!]VSPrinter.TextAlign[ = TextAlignSettings ]
The settings for the TextAlign property are described below:
Constant |
Value |
Description |
taLeftTop |
0 |
Align to the left and to the top. |
taCenterTop |
1 |
Align to the center and to the top. |
taRightTop |
2 |
Align to the right and to the top. |
taLeftBottom |
3 |
Align to the left and to the bottom. |
taCenterBottom |
4 |
Align to the center and to the bottom. |
taRightBottom |
5 |
Align to the right and to the bottom. |
taLeftMiddle |
6 |
Align to the left and to the middle. |
taCenterMiddle |
7 |
Align to the center and to the middle. |
taRightMiddle |
8 |
Align to the right and to the middle. |
taJustTop |
9 |
Justify and align to the top. |
taJustBottom |
10 |
Justify and align to the bottom. |
taJustMiddle |
11 |
Justify and align to the middle. |
The setting specifies the horizontal and vertical alignment. The vertical alignment specification only applies for text drawn in table cells and text boxes. For regular paragraphs and text, the top of the characters is rendered at the CurrentY position.
Note: If you use the Text property to render a paragraph word by word, and change font sizes between words, the control automatically adjusts the CurrentY position so that the bottom of every character lines up. |
TextAlignSettings (Enumeration)