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.
| Method | Returns | Description |
|---|---|---|
| Add | ApiTableOfContents | null | Adds a table of contents to the document and returns it. |
| GetClassType | "tablesOfContents" | Returns a type of the ApiTablesOfContents class. |
| GetCount | number | Returns the number of tables of contents in the document. |
| GetItem | ApiTableOfContents | null | Returns the table of contents at the specified position in the collection. |
| GetParent | ApiDocument | Returns the document that owns this collection. |