Align Property

Returns or sets the alignment of the control on a container.

Syntax

[ enAlign = ] Object.Align

The Align property syntax has the following parts:

 

Name

Type

Description

Object

A control

A control object

enAlign

enumAControlAlign

An integer specifying the type of alignment

Where

enumAControlAlign can be one of the following:

 

Name

Value

Description

actrlNone

0

The object has no alignment assigned.

actrlTop

1

The object is aligned at the top of the form.

actrlBottom

2

The object is aligned at the bottom of the form.

actrlLeft

3

The object is aligned at the left edge of the form.

actrlRight

4

The object is aligned at the right edge of the form.

actrlAll

5

The object is aligned at all sides.

Comments

 

Example

The following statement returns the Align property of an ActiveX object:

lob1Align = ob1.Align

Applies to

Any control which supports the Align property.

See Also

Height, Left, Top, Width