LabelAlign, TextAlign Properties
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
- The LabelAlign property specifies the text alignment within attached labels on new controls.
- The TextAlign property specifies the text alignment in new controls.
The LabelAlign property uses the following settings.
|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 method in Visual Basic.
The TextAlign property uses the following settings.
|General||0||(Default) The text aligns to the left; numbers and dates align to the right.|
|Left||1||The text, numbers, and dates align to the left.|
|Center||2||The text, numbers, and dates are centered.|
|Right||3||The text, numbers, and dates align to the right.|
You can also set the TextAlign property by clicking Align Left , Center , and Align Right 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 method in Visual Basic.
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. To change the default control style for all new forms or reports that you create without using a Microsoft Access wizard, see Specify a new template for forms and reports.