편집

다음을 통해 공유


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);
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. Can be one of the WdCaptionLabelID constants.

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 Range object. Can be one of the WdCaptionPosition constants.

ExcludeLabel
Object

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

Applies to