LabelAlign, TextAlign Properties
Applies To
- LabelAlign property — Bound Object Frame control, Chart control, Check Box control, Combo Box control, Command Button control, List Box control, Option Button control, Option Group control, Subform/Subreport control, Text Box control, Toggle Button control.
- TextAlign property — Combo Box control, Label control Text Box control.
Description
- The LabelAlign property specifies the text alignment within attached labels on new controls.
- The TextAlign property specifies the text alignment in new controls.
Setting
The LabelAlign property uses the following settings.
Setting | Description |
|
General | (Default) The label text aligns to the left. |
Left | The label text aligns to the left. |
Center | The label text is centered. |
Right | The label text aligns to the right. |
You can set the LabelAlign property by using a control's default control style or the DefaultControl method in Visual Basic.
The TextAlign property uses the following settings.
Setting | Description | Visual Basic |
|
General | (Default) The text aligns to the left; numbers and dates align to the right. | 0 |
Left | The text, numbers, and dates align to the left. | 1 |
Center | The text, numbers, and dates are centered. | 2 |
Right | The text, numbers, and dates align to the right. | 3 |
You can set the TextAlign property by using the control's property sheet, a macro, or Visual Basic.
You can also set the TextAlign property by clicking the Align Left, Center, and Align Right buttons on the Formatting (Form/Report) toolbar.
You can set the default for the TextAlign property by using a control's default control style or the DefaultControl method in Visual Basic.
Remarks
When created, controls have an attached label (as long as their AutoLabel property is set to Yes). Changes to the LabelAlign default control style setting affect only controls created on the current form or report.See Also
AddColon, AutoLabel properties, LabelX, LabelY properties.