Position選用Variant會指定要在該範圍的上方還是下方插入標號。 可以為其中一個WdCaptionPosition常數。 ExcludeLabel選用VariantTrue 是表示不包含文字標籤、 Label 參數中所定義。False會包含指定的標籤。 範例 這個範例會在使用中文件內第一個表格的下方插入標號。
expression。InsertCaption(_Label_,_Title_,_TitleAutoText_,_Position_,_ExcludeLabel_) 需要expression。 代表Selection物件的變數。 參數 名稱必要/選用資料類型描述 Label必要Variant要插入標號標籤。 可以是字串或WdCaptionLabelID常數之一。 如果尚未定義標籤,會發生錯誤。 若要定義新的標號標籤搭配CaptionLabels物件...
同感,我也是试了,能插入题注,但是不能设置插入在上面还是下面。这个insertcaption方法的用法和在word...
程序集: Microsoft.Office.Interop.Word.dll 紧接在指定范围之前或之后插入题注。 C# 复制 public void InsertCaption (ref object Label, ref object Title, ref object TitleAutoText, ref object Position, ref object ExcludeLabel); 参数 Label Object 必需的 对象。 要插入的题注标签。 可以是常量之 Wd...
紧接在指定区域或所选内容之前或之后插入题注。 expression.InsertCaption(Label, Title, TitleAutoText, Position) expression 必需。该表达式返回一…
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.dll Inserts a caption immediately preceding or following the specified range. C# publicvoidInsertCaption(refobjectLabel,refobjectTitle,refobjectTitleAutoText,refobjectPosition,refobjectExcludeLabel); Parameters Label Object ...
Word Assembly: Microsoft.Office.Interop.Word.dll Inserts a caption immediately preceding or following the specified range. C# Kopiraj public void InsertCaption (ref object Label, ref object Title, ref object TitleAutoText, ref object Position, ref object ExcludeLabel); Parameters Label Object ...
Word Developer Reference Inserts a caption immediately preceding or following the specified range. Syntax expression.InsertCaption(Label,Title,TitleAutoText,Position,ExcludeLabel) expressionRequired. A variable that represents aRangeobject. Parameters
(this.Paragraphs[1].Range,"bookmark1"); bookmark1.Text ="First bookmark";objectLabel = Word.WdCaptionLabelID.wdCaptionFigure;objectPosition = Word.WdCaptionPosition.wdCaptionPositionAbove;objectExcludeLabel =false; bookmark1.InsertCaption(refLabel,refmissing,refmissing,refPosition,refExcludeLabel);...