LabelRequiredVariantThe caption label to be inserted. Can be aStringor one of theWdCaptionLabelIDconstants. If the label has not yet been defined, an error occurs. Use theAddmethod with theCaptionLabelsobject to define new caption labels. ...
expression。InsertCaption(_Label_,_Title_,_TitleAutoText_,_Position_,_ExcludeLabel_) 需要expression。 代表Range物件的變數。 參數 名稱必要/選用資料類型描述 Label必要Variant要插入標號標籤。 可以是字串或WdCaptionLabelID常數之一。 如果尚未定義標籤,會發生錯誤。 若要定義新的標號標籤搭配CaptionLabels物件的...
Word.Selection.InsertCaption('图',PicN,'',0,false); %插入题注 Selection.Paragraphs.Alignment =...
Position選用Variant會指定上方或下方選取項目是否會插入標號。 可以是WdCaptionPosition常數之一。 ExcludeLabel選用VariantTrue 是表示不包含文字標籤、 Label 參數中所定義。False會包含指定的標籤。 範例 這個範例會在插入點插入 Figure 標號。 VB Selection.Collapse Direction:=wdCollapseStart Selection.InsertCaption Labe...
紧接在指定区域或所选内容之前或之后插入题注。 expression.InsertCaption(Label, Title, TitleAutoText, Position) expression 必需。该表达式返回一…
Selection.InsertAfter Method (Word) Selection.InsertBefore Method (Word) Selection.InsertBreak Method (Word) Selection.InsertCaption Method (Word) Selection.InsertCells Method (Word) Selection.InsertColumns Method (Word) Selection.InsertColumnsRight Method (Word) ...
Microsoft.Office.Interop.Word.dll Inserts a caption immediately preceding or following the specified range. C# publicvoidInsertCaption(refobjectLabel,refobjectTitle,refobjectTitleAutoText,refobjectPosition,refobjectExcludeLabel); Parameters Label Object ...
TheInsert Captionfeature in Word makes it easy to systematically add captions to pictures in a document. In other Office apps, such as PowerPoint, you manually add a text box near the image and then group the text box and image.See the instructions below. If you have multiple pictures in ...
Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 紧靠在指定的所选内容之前或之后插入题注。 C# publicvoidInsertCaption(refobjectLabel,refobjectTitle,refobjectTitleAutoText,refobjectPosition,refobjectExcludeLabel); 参数 Label
程序集: Microsoft.Office.Tools.Word.dll 紧靠Bookmark 控件之前或之后插入标题。 C# 复制 public void InsertCaption (ref object Label, ref object Title, ref object TitleAutoText, ref object Position, ref object ExcludeLabel); 参数 Label Object 要插入的标题标签。 WdCaptionLabelID. Title Object ...