Type: Integer
Availability: Read or write at run time only
The drawTextAlign property of the Window class contains the alignment used when outputting text on a form or control using the drawTextAt and drawTextIn graphics methods.
The settings of the drawTextAlign property are listed in the following table.
Window Class Constant | Value | Description |
---|---|---|
DrawTextAlign_Center | 2 | For the drawTextAt method, the text is positioned so that it is centered horizontally over the specified position. For the drawTextIn method, the text is centered within the specified rectangle. |
DrawTextAlign_Left | 0 | Text is drawn starting at the specified positioned requested. This is the default value. |
DrawTextAlign_Right | 1 | For the drawTextAt method, the text is positioned so that it ends at the specified position. For the drawTextIn method, the text is positioned so that it ends at the right hand edge of the requested rectangle. |