Skip to main content

ApiTablesOfContents

Class representing the collection of all tables of contents in a document.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Methods​

The following table lists the available methods.

MethodReturnsDescription
AddApiTableOfContents | nullAdds a table of contents to the document and returns it.
GetClassType"tablesOfContents"Returns a type of the ApiTablesOfContents class.
GetCountnumberReturns the number of tables of contents in the document.
GetItemApiTableOfContents | nullReturns the table of contents at the specified position in the collection.
GetParentApiDocumentReturns the document that owns this collection.