Alignment Property (AGroupBox)

Returns or sets control over the position of the text (left or right) in the object at run time.

Syntax

Object.Alignment [ = enAlignment ]

The Alignment property syntax has the following parts:

 

Name

Type

Description

Object

AGroupBox

AGroupBox control.

enAlignment

enumAGroupBoxAlignment

An integer specifying the type of alignment.

Where

enumAGroupBoxAlignment can be one of the following:

 

Name

Value

Description

agbLeft

0*

Text is left aligned.

agbRight

1

Text is right aligned.

agbCenter

2

Text is centered.

Example

The following statement changes the AGroupBox Alignment to the right:

gb1.Alignment = agbRight

Applies to

AGroupBox

See Also

Height, Left, Top, Width