跳到主要内容

TofPr

图表目录属性。

类型

对象

属性

名称类型描述
BuildFromCaptionLabel | string指定是否基于指定的题注标签或所用的段落样式名称(例如「标题 1」)生成图表目录。
FormatAsLinksboolean指定是否将图表目录格式化为链接。
LabelNumberboolean指定是否在图表目录中包含标签和编号。
LeaderTypeTocLeader图表目录中的前导符类型。
RightAlgnboolean指定是否在图表目录中右对齐页码。
ShowPageNumsboolean指定是否在图表目录中显示页码。
TofStyleTofStyle图表目录样式类型。

示例

This example adds a table of figures with the specified properties to the document.

// How to create a table of figures properties.

// Add a table of figures from created properties.

let tofPr = {
"ShowPageNums": true,
"RightAlgn": true,
"LeaderType": "dot",
"FormatAsLinks": true,
"BuildFrom": "Figure",
"LabelNumber": true,
"TofStyle": "distinctive"
};
doc.AddTableOfFigures(tofPr);