Alignment Property (AComboBox)

Returns and sets the alignment of strings and scroll bars displayed in the object.

Syntax

Object.Alignment [ = enAlignment ]

The Alignment property syntax has the following parts:

 

Name

Type

Description

Object

AComboBox

AComboBox control

enAlignment

enumAComboBoxAlignment

An integer specifying the type of alignment.

Where

enumAComboBoxAlignment can be one of the following:

 

Name

Value

Description

acbLeft

0*

Text is left aligned. The scroll bar is to the right. Applies to a non-bidirectional platform, such as English Windows.

acbRight

1

Text is right aligned. The scroll bar is to the left. Applies to a bi-directional platform, such as Arabic Windows or Hebrew Windows.

Comments

Text can be aligned to either the right or left in an AComboBox control. Be default, the text is left-aligned (on the left side of the AComboBox). This property can be set at design time and is read-only at run time.

Example

The following statement returns the AComboBox Alignment:

lcb1Alignment = cb1.Alignment

The following statement sets the AComboBox Alignment

cb1.Alignment = acbRight

Applies to

AComboBox

See Also

Height, Left, Top, Width