TocPr

type TocPr = object

Description

Table of contents properties.

Properties

ShowPageNumsbooleandefault: true

Specifies whether to show page numbers in the table of contents.

RightAlgnbooleandefault: true

Specifies whether to right-align page numbers in the table of contents.

LeaderTypeTocLeaderdefault: "dot"

The leader type in the table of contents.

FormatAsLinksbooleandefault: true

Specifies whether to format the table of contents as links.

BuildFromTocBuildFromPrdefault: {OutlineLvls=9}

Specifies whether to generate the table of contents from the outline levels or the specified styles.

TocStyleTocStyledefault: "standard"

The table of contents style type.

Try It

var oTocPr = {"ShowPageNums": true, "RightAlgn": true, "LeaderType": "dot", "FormatAsLinks": true, "BuildFrom": {"OutlineLvls": 9}, "TocStyle": "standard"};
oDocument.AddTableOfContents(oTocPr);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).