Returns or sets a numeric value that determines the horizontal alignment of the caption.

Syntax:
StyleObject.CaptionAlignmentHorizontal [= GRE_HORIZONTALALIGNMENT]
The CaptionAlignmentHorizontal Property (Style Object) syntax has these parts:
| Part |
Description |
| StyleObject |
An object expression that evaluates to a Style object. |
| GRE_HORIZONTALALIGNMENT |
A numeric value that determines the caption's horizontal alignment as described in settings. |
The settings for GRE_HORIZONTALALIGNMENT are:
| Setting |
Description |
| 1 |
(GRE_HORIZONTALALIGNMENT.HAL_LEFT). Horizontal alignment left. |
| 2 |
(GRE_HORIZONTALALIGNMENT.HAL_CENTER). (Default). Horizontal alignment center. |
| 3 |
(GRE_HORIZONTALALIGNMENT.HAL_RIGHT). Horizontal alignment right. |
Remarks:
For additional horizontal positioning of text refer to the CaptionXMargin property of the Style object.