LabelAlign Property
The document is archived and information here might be outdated

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.

Setting

The LabelAlign property uses the following settings.

SettingDescription
General(Default) The label text aligns to the left.
LeftThe label text aligns to the left.
CenterThe label text is centered.
RightThe 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.

SettingVisual BasicDescription
          
General0(Default) The text aligns to the left; numbers and dates align to the right.
Left1The text, numbers, and dates align to the left.
Center2The text, numbers, and dates are centered.
Right3The text, numbers, and dates align to the right.

You can set the TextAlign property by using the control's property sheet, a macro, or .

You can also set the TextAlign property by clicking Align Left Aa206348.alignlft(en-us,office.10).gif, Center Aa206348.alignctr(en-us,office.10).gif, and Align Right Aa206348.alignrt(en-us,office.10).gif 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.

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. 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.

Show:
© 2016 Microsoft