初始化 TableCaption 类的新实例。 C# 复制 public TableCaption(); 适用于 产品版本 DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, ...
本示例改变 Word 应用程序窗口的题注,使其包括用户名。 VB 复制 Application.Caption = UserName & "'s copy of Word" 本示例插入一个表格标题,然后将第一个图表表格的标题更改为 Table。 VB 复制 Selection.Collapse Direction:=wdCollapseStart Selection.Range.InsertCaption "Table" If ActiveDocument.Table...
MsgBox AutoCaptions("Microsoft Word Table").CaptionLabel.Name 索引編號代表AutoCaption物件在 [自動選項] 對話方塊的標題清單中的位置。 下列範例會顯示 [自動選項] 對話方塊中所選取第一個專案的名稱。 VB MsgBox AutoCaptions(1).Name 方法 CancelAutoInsert ...
此範例會將 Word 表格的標題標籤設為 "Table",然後在選取範圍後面立即插入新表格。 VB WithAutoCaptions("Microsoft Word Table") .AutoInsert =True.CaptionLabel = wdCaptionTableEndWithSelection.Collapse Direction:=wdCollapseEnd ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, _ NumColumns:=...
ActiveDocument.Tables(1).Range.InsertCaption _ Label:=wdCaptionTable, _ Position:=wdCaptionPositionBelow 另請參閱 Range 物件 支援和意見反應 有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱Office VBA 支援與意見反應。
Notice that the number 4 is pre populated by the Word and I cannot delete. There is currently only one table before this table and has a caption Table 1. There are other tables too which earlier had a caption, but now I have deleted them and now I want to reassign capti...
table 元素将显示为一个块表格,表格前后都有换行符。 table-caption 元素将显示为表格标题。 table-cell 元素将显示为表格单元格。 table-column 元素将显示为表列。 table-column-group 元素将显示为一组表列。此组可能包含一个或多个列。 table-footer-group 元素将显示为一组表格表尾。此组可能包含一个或多...
返回或设置指定题注的题注标签(如“图表”、“表格”或“公式”等)。Variant 类型,可读写。 注意 本属性可设置为字符串或一个 WdCaptionLabelID 常…
Create a new caption label Word provides three standard caption labels: Equation, Figure, and Table. You can use these caption labels or create your own custom label text. On theInsertmenu, clickCaption. ClickNew Label. In theLabelbox, type the label that you want, and then clickOK. ...
Application.Caption = UserName & "'s copy of Word" 本示例插入一个“表格”题注,然后将第一个图表目录的题注改为“表格”。 Selection.Collapse Direction:=wdCollapseStart Selection.Range.InsertCaption "Table" If ActiveDocument.TablesOfFigures.Count >= 1 Then ActiveDocument.TablesOfFigures(1).Caption ...