# Using a Table of Contents

> Insert, update and delete a table of contents in TXTextControl with TableOfContentsDialog, TableOfContentsUpdate and TableOfContentsDelete and its events.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Using a Table of Contents
- **460 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/table-of-contents/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/table-of-contents/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/table-of-contents/llms-full.txt

---

A `TXTextControl` document can hold a table of contents with page numbers. The methods below delete and update it and open the built-in dialog box for inserting or changing it; the events report that one has been created or deleted, or that the input position enters or leaves it.

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.TableOfContentsDelete`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsdelete-method/llms-full.txt) | This method can be used to delete a table of contents. |
| [`TXTextControl.TableOfContentsDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsdialog-method/llms-full.txt) | Invokes the built-in dialog box for inserting or changing a table of contents. |
| [`TXTextControl.TableOfContentsUpdate`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsupdate-method/llms-full.txt) | This method can be used to update the content and the page numbers of a table of contents. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.TableOfContentsCreated`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentscreated-event/llms-full.txt) | Occurs when a table of contents has been created. |
| [`TXTextControl.TableOfContentsDeleted`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsdeleted-event/llms-full.txt) | Occurs when a table of contents has been deleted. |
| [`TXTextControl.TableOfContentsEntered`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsentered-event/llms-full.txt) | Occurs when the current text input position has been moved to a position that belongs to a table of contents. |
| [`TXTextControl.TableOfContentsLeft`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsleft-event/llms-full.txt) | Occurs when the current text input position has left a table of contents. |

### Related Pages

- [Stylesheet Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-formatting/llms-full.txt): apply formatting styles and open the style dialog box.
- [Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/dialog-boxes/llms-full.txt): every method that opens a built-in dialog box.

---

## Nearby

- **Previous:** [Spell Checking](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/llms-full.txt)
- **Next:** [Using Footnotes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/footnotes/llms-full.txt)
