跳到主要内容

TocLeader

Possible values for the table of contents leader: -"dot" - "......." -"dash" - "-------" -"underline" - "_______"

Type

Enumeration

Values

  • "dot"
  • "dash"
  • "underline"
  • "none"

Example

This example adds a table of contents with the dot leader to the document.

// How to create a table of contents properties indicating its leader type.

// Add a table of contents with dot leader type.

let tocLeader = "dot";
let tocPr = {
"ShowPageNums": true,
"RightAlgn": true,
"LeaderType": tocLeader,
"FormatAsLinks": true,
"BuildFrom": {
"OutlineLvls": 9
},
"TocStyle": "standard"
};
doc.AddTableOfContents(tocPr);