LabelAlign Property
The LabelAlign property specifies the text alignment within attached labels on new controls. Read/write Byte.
expression.LabelAlign
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The LabelAlign property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
General | 0 | (Default) The label text aligns to the left. |
Left | 1 | The label text aligns to the left. |
Center | 2 | The label text is centered. |
Right | 3 | The label text aligns to the right. |
Distribute | 4 | The label text is evenly distributed. |
You can set the LabelAlign property by using a control's default control style or the DefaultControl 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.