# FootnoteCollection.HighlightMode Property

> Gets or sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 32.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > FootnoteCollection.HighlightMode Property
- **695 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/footnotecollection/highlightmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/footnotecollection/highlightmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/footnotecollection/highlightmode-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

### Syntax

```csharp
public HighlightMode HighlightMode { get; set; }
```

```vbnet
Public Property HighlightMode As HighlightMode
```

### Members

| Value | Description |
|---|---|
| Activated | A footnote number is highlighted when it contains the text input position. |
| Always | All footnote numbers are highlighted. |
| Never | Default. No footnote number is highlighted. |
| Auto | This value cannot be used for this property. |

### Examples

The following example works with footnotes in the current document by using `FootnoteCollection.HighlightMode`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FootnoteCollection footnoteCollection = textControl.Footnotes;
footnoteCollection.Add(new Footnote("Source: FY 2026 annual report") { ID = 100 }, false);

footnoteCollection.HighlightMode = HighlightMode.Never;
Console.WriteLine($"Highlight Mode used by Footnote Collection: {footnoteCollection.HighlightMode}");
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim footnoteCollection As FootnoteCollection = textControl.Footnotes
footnoteCollection.Add(New Footnote("Source: FY 2026 annual report") With { .ID = 100 }, False)

footnoteCollection.HighlightMode = HighlightMode.Never
Console.WriteLine($"Highlight Mode used by Footnote Collection: {footnoteCollection.HighlightMode}")
```

---

## Nearby

- **Previous:** [FootnoteCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/footnotecollection/getitem-method/llms-full.txt)
- **Next:** [FootnoteCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/footnotecollection/item-property/llms-full.txt)
