LabelAlign, TextAlign Properties

Applies To

  • LabelAlign — Bound Object Frame 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 — Combo Box Control, Command Button Control, Label Control, Text Box Control.

Description

  • LabelAlign — You can use this property to specify the text alignment within attached labels on new controls.
  • TextAlign — You can use this property to specify the text alignment in new controls.

Setting

The LabelAlign property uses the following settings.

Setting

Description

General

(Default) Label text aligns to the left.

Left

Data aligns to the left.

Center

Data is centered.

Right

Data aligns to the right.


You can set the LabelAlign property only in the default control style.

The TextAlign property uses the following settings.

Setting

Description

Visual Basic

General

(Default) Text aligns to the left; numbers and dates align to the right.

0

Left

Data aligns to the left.

1

Center

Data is centered.

2

Right

Data aligns to the right.

3


You can set the TextAlign property in the control’s property sheet, a macro, or Visual Basic.

You can also set the TextAlign property using the Formatting toolbar.

Remarks

When created, controls have an attached label. Changes to this default control property setting affect only controls created on the current form or report.

See Also

AddColon, AutoLabel Properties; LabelX, LabelY Properties.