CaptionLabels Property

Applies To

Application object, Global object.

Description

Returns a CaptionLabels collection that represents all the available caption labels. Read-only.

See Also

AutoCaptions property.

Example

This example sets the numbering style for table captions.

CaptionLabels(wdCaptionTable).NumberStyle = wdCaptionNumberStyleLowercaseRoman
This example adds a new caption label named "Photo" and then inserts a photo caption.

CaptionLabels.Add Name:="Photo"
With Selection
    .InsertParagraphAfter
    .InsertCaption Label:="Photo"
End With