# Javascript: TableOfContentsInfo.highlightMode Property

> Indicates how the text of the table of contents is highlighted.

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

---

### Description

Indicates how the text of the table of contents is highlighted.

### Syntax

```javascript
<string> TableOfContentsInfo.highlightMode
```

### Examples

The following example demonstrates `TableOfContentsInfo.highlightMode` in a practical document-editing workflow. Indicates how the text of the table of contents is highlighted.

```javascript
function inspectHighlightMode(tableOfContentsInfo) {
    const highlightMode = tableOfContentsInfo.highlightMode;
    console.log("highlight mode:", highlightMode);
}
```

---

## Nearby

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