LabelAlign, TextAlign Properties

Applies To  

Description

Setting

The LabelAlign property uses the following settings.

Setting

Description

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 DefaultControl method in Visual Basic.

The TextAlign property uses the following settings.

Setting

Description

Visual Basic

General

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

0

Left

The text, numbers, and dates align to the left.

1

Center

The text, numbers, and dates are centered.

2

Right

The text, numbers, and dates align to the right.

3


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

You can also set the TextAlign property by clicking the Align Left, Center, and Align Right buttons 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 DefaultControl 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.

See Also   AddColon, AutoLabel properties, LabelX, LabelY properties.