Alignment Property (AStatusBarPane)

Returns or sets the alignment of text in the object.

Syntax

Object.Alignment [ = enAlignment ]

The Alignment property syntax has the following parts:

 

Name

Type

Description

Object

AStatusBarPane

AStatusBarPane object

enAlignment

enumAStatusBarPaneAlignment

An integer specifying the alignment of text in the object.

Where

enumAStatusBarPaneAlignment can be one of the following:

 

Name

Value

Description

asbrpAlignmentLeft

0 *

Left. Text appears left-justified and to right of bitmap.

asbrpAlignmentCenter

1

Center. Text appears centered and to right of bitmap.

asbrpAlignmentRight

2

Right. Text appears right-justified and to left of bitmap.

Comments

As well as positioning the text, the Alignment property specifies the position of the bitmap, as described in the descritions of enumAStatusBarPaneAlignment. There is no way to independently position the bitmap within the pane.

Example

The following statement changes the alignment of text to be centered:

sbrp1.Panes(0).Alignment=asbrpAlignmentCenter

Applies to

AStatusBarPane

See Also

AutoSize, BorderStyle, Style