Visual Basic: Windows Controls
Returns or sets the alignment of text in the caption of an object.
object.Alignment [= number]
The Alignment property syntax has these parts:
|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.|
The settings for the Panel object number are:
|0||(Default). Text appears left-justified and to right of bitmap.|
|1||Text appears centered and to right of bitmap.|
|2||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 Settings. There is no way to independently position the bitmap within the panel.