Export (0) Print
Expand All
Expand Minimize

Range.InsertCaption method

Inserts a caption immediately preceding or following the specified range.

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

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

Parameters

Label
Type: System.Object

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

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).

Position
Type: System.Object

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

ExcludeLabel
Type: System.Object

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

Show:
© 2014 Microsoft