# Javascript: TableOfContentsInfo.highlightColor Property

> The highlight color for 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.highlightColor Property
- **166 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/highlightcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/highlightcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/highlightcolor-property/llms-full.txt

---

### Description

The highlight color for the table of contents.

### Syntax

```javascript
<string> TableOfContentsInfo.highlightColor
```

### Examples

The following example demonstrates `TableOfContentsInfo.highlightColor` in a practical document-editing workflow. The highlight color for the table of contents.

```javascript
function inspectHighlightColor(tableOfContentsInfo) {
    const highlightColor = tableOfContentsInfo.highlightColor;
    console.log("highlight color:", highlightColor);
}
```

---

## Nearby

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