# TableOfContentsCreated Event

> Occurs when a table of contents has been created in the document and passes the Long identifier of the new table of contents to the handler.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TableOfContentsCreated Event
- **148 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentscreated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentscreated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentscreated-event/llms-full.txt

---

Occurs when a table of contents has been created.

Introduced: 29.0.

### Syntax

```vbscript
TableOfContentsCreated(TOCId)
```

### Parameters

| Parameter | Description |
|---|---|
| TOCId | Is the identifier of the table of contents that has been created. |

### Data Types

| Name | Data type |
|---|---|
| TOCId | Long |

### See Also

- [TableOfContentsDeleted Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsdeleted-event/llms-full.txt)
- [Programming Category: Using a Table of Contents](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/table-of-contents/llms-full.txt)

---

## Nearby

- **Previous:** [TableNext Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablenext-method/llms-full.txt)
- **Next:** [TableOfContentsDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableofcontentsdelete-method/llms-full.txt)
