Selection.InsertCaption Method

Inserts a caption immediately preceding or following the specified selection.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)


Sub InsertCaption ( _
    ByRef Label As Object, _
    ByRef Title As Object, _
    ByRef TitleAutoText As Object, _
    ByRef Position As Object, _
    ByRef ExcludeLabel As Object _
Dim instance As Selection
Dim Label As Object
Dim Title As Object
Dim TitleAutoText As Object
Dim Position As Object
Dim ExcludeLabel As Object

instance.InsertCaption(Label, Title, TitleAutoText, _
    Position, ExcludeLabel)
void InsertCaption(
    ref Object Label,
    ref Object Title,
    ref Object TitleAutoText,
    ref Object Position,
    ref Object ExcludeLabel


  • Title
    Type: System.Object%
    Optional Object. The string to be inserted immediately following the label in the caption (ignored if TitleAutoText is specified).
  • TitleAutoText
    Type: System.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).
  • ExcludeLabel
    Type: System.Object%
    Optional Object. True does not include the text label, as defined in the Label parameter; False includes the specified label.

See Also


Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace