TocStyleLvl
type TocStyleLvl = object
Description
Table of contents style levels.
Properties
- Name
string
null Style name (for example, "Heading 1").
- Lvl
number
null Level which will be applied to the specified style in the table of contents.
Try It
var aTocStyleLvl = [{Name: "Heading 1", Lvl: 2}, {Name: "Heading 2", Lvl: 3}];
var oTocPr = {"ShowPageNums": true, "RightAlgn": true, "LeaderType": "dot", "FormatAsLinks": true, "BuildFrom": {"StylesLvls": aTocStyleLvl}, "TocStyle": "standard"};
oDocument.AddTableOfContents(oTocPr);