Returns or sets the alignment of text in the object.
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. |
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. |
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.
The following statement changes the alignment of text to be centered:
sbrp1.Panes(0).Alignment=asbrpAlignmentCenter