Range.InsertCaption(Object, Object, Object, Object, Object) Range.InsertCaption(Object, Object, Object, Object, Object) Method

Definition

Inserts a caption immediately preceding or following the specified range.

public void InsertCaption (ref object Label, ref object Title, ref object TitleAutoText, ref object Position, ref object ExcludeLabel);
Public Sub InsertCaption (ByRef Label As Object, Optional ByRef Title As Object, Optional ByRef TitleAutoText As Object, Optional ByRef Position As Object, Optional ByRef ExcludeLabel As Object)

Parameters

Label

Required Object. The caption label to be inserted. Can be one of the WdCaptionLabelID constants.

Title

Optional Object. The string to be inserted immediately following the label in the caption (ignored if TitleAutoText is specified).

TitleAutoText

Optional Object. The AutoText entry whose contents you want to insert immediately following the label in the caption (overrides any text specified by Title).

Position

Optional Object. Specifies whether the caption will be inserted above or below the Range object. Can be one of the WdCaptionPosition constants.

ExcludeLabel

Optional Object. True does not include the text label, as defined in the Label parameter. False includes the specified label.

Applies to