# TableOfContentsInfo Object

> Information about a table of contents. Is needed by the event argument class TableOfContentsEventArgs.

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

---

### Description

Information about a table of contents. Is needed by the event argument class [TableOfContentsEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentseventargs/llms-full.txt).

### Syntax

```javascript
{
   hasLinks: <boolean>,
   hasPageNumbers: <boolean>,
   hasRightAlignedPageNumbers: <boolean>,
   highlightColor: <string>,
   highlightMode: <string>,
   id: <Number>,
   length: <number>,
   maximumStructureLevel: <number>,
   minimumStructureLevel: <number>,
   name: <string>,
   number: <number>,
   start: <number>
}
```

### Examples

The following example demonstrates `TableOfContentsInfo` in a practical document-editing workflow. Information about a table of contents. Is needed by the event argument class TableOfContentsEventArgs.

```javascript
function inspectTableOfContentsInfo(tableOfContentsInfo) {
    console.log("has links:", tableOfContentsInfo.hasLinks);
    console.log("has page numbers:", tableOfContentsInfo.hasPageNumbers);
    console.log("has right aligned page numbers:", tableOfContentsInfo.hasRightAlignedPageNumbers);
    console.log("highlight color:", tableOfContentsInfo.highlightColor);
}
```

---

## In This Section

- [Javascript: TableOfContentsInfo.hasLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/llms-full.txt): Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.
- [Javascript: TableOfContentsInfo.hasPageNumbers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/llms-full.txt): Specifies whether the table of contents contains page numbers.
- [Javascript: TableOfContentsInfo.hasRightAlignedPageNumbers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/hasrightalignedpagenumbers-property/llms-full.txt): Specifies whether the page numbers in the table of contents are right-aligned.
- [Javascript: TableOfContentsInfo.highlightColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/highlightcolor-property/llms-full.txt): The highlight color for the table of contents.
- [Javascript: TableOfContentsInfo.highlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/highlightmode-property/llms-full.txt): Indicates how the text of the table of contents is highlighted.
- [Javascript: TableOfContentsInfo.id Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/id-property/llms-full.txt): The table of contents' identifier.
- [Javascript: TableOfContentsInfo.length Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/length-property/llms-full.txt): The number of characters which belong to the table of contents.
- [Javascript: TableOfContentsInfo.maximumStructureLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/maximumstructurelevel-property/llms-full.txt): The maximum structure level for this table of contents.
- [Javascript: TableOfContentsInfo.minimumStructureLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/minimumstructurelevel-property/llms-full.txt): The minimum structure level for this table of contents.
- [Javascript: TableOfContentsInfo.name Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/name-property/llms-full.txt): The table of contents' name.
- [Javascript: TableOfContentsInfo.number Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/number-property/llms-full.txt): The table of contents' one-based number in the document.
- [Javascript: TableOfContentsInfo.start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/start-property/llms-full.txt): The one-based index of the first character which belongs to the table of contents.

---

## Nearby

- **Previous:** [Javascript: TableOfContentsEventArgs.tableOfContents Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentseventargs/tableofcontents-property/llms-full.txt)
- **Next:** [Javascript: TableOfContentsInfo.hasLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/llms-full.txt)
