# TableOfContents.DefaultHighlightColor Property

> Represents the default highlight color. It is black with an alpha value of 60.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableOfContents.DefaultHighlightColor Property
- **483 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/defaulthighlightcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/defaulthighlightcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/defaulthighlightcolor-property/llms-full.txt

---

### Description

Represents the default highlight color. It is black with an alpha value of 60.

### Syntax

```csharp
public static Color DefaultHighlightColor { get; }
```

```vbnet
Public Shared ReadOnly Property DefaultHighlightColor As Color
```

### Examples

The following example creates a table of contents for the document's heading styles by using `TableOfContents.DefaultHighlightColor`.

```csharp
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);

Console.WriteLine($"Default Highlight Color: {TableOfContents.DefaultHighlightColor}");
Console.WriteLine("Table Of Contents is ready for use.");
```

```vbnet
Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)

Console.WriteLine($"Default Highlight Color: {TableOfContents.DefaultHighlightColor}")
Console.WriteLine("Table Of Contents is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableOfContents Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/constructor/llms-full.txt)
- **Next:** [TableOfContents.HasLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableofcontents/haslinks-property/llms-full.txt)
