ListBox.LabelAlign property (Access)
The LabelAlign property specifies the text alignment within attached labels on new controls. Read/write Byte.
Syntax
expression.LabelAlign
expression A variable that represents a ListBox object.
Remarks
The LabelAlign property uses the following settings.
Setting | Description |
---|---|
0 | (Default) The label text aligns to the left. |
1 | The label text aligns to the left. |
2 | The label text is centered. |
3 | The label text aligns to the right. |
4 | The label text is evenly distributed. |
You can set the LabelAlign property by using a control's default control style or the DefaultControl property 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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.