Alignment Property (HeaderItem, Panel Object)

           

Returns or sets the alignment of text in the caption of an object.

Syntax

object.Alignment [= number]

The Alignment property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A constant or value specifying the type of action, as described in Settings.

Settings

The settings for the Panel object number are:

Constant Value Description
sbrLeft

hdrLeft

0 (Default). Text appears left-justified and to right of bitmap.
sbrCenter

hdrCenter

1 Text appears centered and to right of bitmap.
sbrRight

hdrRight

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

Remarks

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