# Javascript: TableOfContentsInfo.length Property

> The number of characters which belong to the table of contents.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableOfContentsInfo.length Property
- **162 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/length-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/length-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/length-property/llms-full.txt

---

### Description

The number of characters which belong to the table of contents.

### Syntax

```javascript
<number> TableOfContentsInfo.length
```

### Examples

The following example demonstrates `TableOfContentsInfo.length` in a practical document-editing workflow. The number of characters which belong to the table of contents.

```javascript
function inspectLength(tableOfContentsInfo) {
    const length = tableOfContentsInfo.length;
    console.log("length:", length);
}
```

---

## Nearby

- **Previous:** [Javascript: TableOfContentsInfo.id Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/id-property/llms-full.txt)
- **Next:** [Javascript: TableOfContentsInfo.maximumStructureLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/maximumstructurelevel-property/llms-full.txt)
