Edit

Share via


Selection.InsertCaption(Object, Object, Object, Object, Object) Method

Definition

Inserts a caption immediately preceding or following the specified selection.

public void InsertCaption (ref object Label, ref object Title, ref object TitleAutoText, ref object Position, ref object ExcludeLabel);
abstract member InsertCaption : obj * obj * obj * obj * obj -> unit
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
Object

Required Object. The caption label to be inserted. WdCaptionLabelID.

Title
Object

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

TitleAutoText
Object

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
Object

Optional Object. Specifies whether the caption will be inserted above or below the Selection object. WdCaptionPosition.

ExcludeLabel
Object

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

Applies to