Returns or sets a string value that specifies the text of the Header object.

Syntax:
HeaderObject.Caption [= String Value]
The Caption Property (Header Object) syntax has these parts:
| Part |
Description |
| HeaderObject |
An object expression that evaluates to a Header object. |
| String Value |
A string value that determines the Header object's text. |
Remarks:
A caption can be any combination of numeric or alphanumeric characters. Captions are printed in one line without wrapping. The associated Style object controls how the caption is displayed. If the CaptionVisible property of the associated Style object is set to False, no caption is displayed. Vertical and Horizontal alignment of the Caption is controlled by the associated Style object's CaptionAlignmentHorizontal and CaptionAlignmentVertical properties. The offset margin of the caption is determined by the associated Style object's CaptionXMargin and CaptionYMargin properties. The Font used to display the caption is determined by the Font property of the associated Style object. The color of the caption is determined by the Associated Style object's ForeColor property.