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.
- Code
- Result
// 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);