TextAlign Property
Applies To
Button, Label, TextBox, RadioButton, CheckBox, LED
Description
Gets or sets the alignment of text in the control.
Usage
GGet Form.Control.TextAlign, var
GSet Form.Control.TextAlign, value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name.
- var
- Integer variable that will contain the value of the property.
- value
- Integer expression for the new value of the property.
Values
For Button, Label, RadioButton, CheckBox controls
1 - TopLeft
2 - TopCenter
3 - TopRight
4 - MiddleLeft
5 - MiddleCenter
6 - MiddleRight
7 - BottomLeft
8 - BottomCenter
9 - BottomRight
Default: 1 - TopLeft (Label 1)
4 - MiddleLeft (RadioButton, CheckBox)
5 - MiddleCenter (Button)
6 - MiddleRight (LED)For TextBox
1 - Left
2 - Center
3 - Right
Default: Left
See Also
Button, Label, TextBox, RadioButton, Checkbox, LED, Text
Example
GSet frmMain.lblName.TextAlign, TEXTALIGN_LEFT