Skip to main content

ApiTableOfContents

Class representing a table of contents.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeletebooleanRemoves the table of contents from the document.
GetClassType"tableOfContents"Returns a type of the ApiTableOfContents class.
GetIncludePageNumbersbooleanReturns whether page numbers are shown in the table of contents.
GetLowerHeadingLevelnumberReturns the lowest (innermost) heading level included in the table of contents.
GetParentApiDocument | nullReturns the document that contains the table of contents.
GetRangeApiRange | nullReturns a range that covers the entire table of contents.
GetRightAlignPageNumbersbooleanReturns whether page numbers are right-aligned in the table of contents.
GetUpperHeadingLevelnumberReturns the highest (outermost) heading level included in the table of contents.
GetUseHyperlinksbooleanReturns whether entries are formatted as hyperlinks.
SetIncludePageNumbersbooleanSpecifies whether page numbers are shown in the table of contents.
SetLowerHeadingLevelbooleanSets the lowest (innermost) heading level included in the table of contents.
SetPrbooleanApplies the specified properties to the table of contents and rebuilds it.
SetRightAlignPageNumbersbooleanSpecifies whether page numbers are right-aligned in the table of contents.
SetUpperHeadingLevelbooleanSets the highest (outermost) heading level included in the table of contents.
SetUseHyperlinksbooleanSpecifies whether entries are formatted as hyperlinks.
UpdatebooleanUpdates the table of contents.