

The following example displays the first caption label. The index number represents the position of the caption label in the CaptionLabels collection.

The following example sets the numbering style for the Figure caption label. Use CaptionLabels ( index), where index is the caption label name or index number, to return a single CaptionLabel object. The following example adds a caption label named "Photo." CaptionLabels.Add Name:="Photo" Use the Add method to add a custom caption label. By default, the CaptionLabels collection includes the three built-in caption labels: Figure, Table, and Equation. Use the CaptionLabels property to return the CaptionLabels collection. The items in the CaptionLabels collection are listed in the Label box in the Caption dialog box. A collection of CaptionLabel objects that represent the available caption labels.
