# TableOfContentsCollection Object

> Contains all tables of contents in a certain part of the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > TableOfContentsCollection Object
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/#members)

---

## In This Section

- [Javascript: TableOfContentsCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/add-method/llms.txt): Adds a new table of contents to the document at the current text input position.
- [Javascript: TableOfContentsCollection.getItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/getitem-method/llms.txt): Gets the table of contents at the current input position or the table of contents with the specified identifier.
- [Javascript: TableOfContentsCollection.getItemByName Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/getitembyname-method/llms.txt): Gets the table of contents with the specified name.
- [Javascript: TableOfContentsCollection.remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/remove-method/llms.txt): Removes a table of contents from the collection including all its text and including all DocumentTargets to where the table's links point.

---

## Nearby

- **Previous:** [TableOfContentsCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscallback/llms.txt)
- **Next:** [Javascript: TableOfContentsCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollection/add-method/llms.txt)
