# TrackedChange.HighlightColor Property

> Gets or sets the highlight color for the tracked change. If the highlight color is TrackedChange.DefaultHighlightColor and the change has been made through an user who is not the current user, the highlight color is set to a color depending on the user name. The current user is the first string set with the TextControl.UserNames property.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.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 > TrackedChange.HighlightColor Property
- **477 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/highlightcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/highlightcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/highlightcolor-property/llms-full.txt

---

### Description

Gets or sets the highlight color for the tracked change. If the highlight color is [TrackedChange.DefaultHighlightColor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/defaulthighlightcolor-property/llms-full.txt) and the change has been made through an user who is not the current user, the highlight color is set to a color depending on the user name. The current user is the first string set with the [TextControl.UserNames](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/usernames-property/llms-full.txt) property.

### Syntax

```csharp
public Color HighlightColor { get; set; }
```

```vbnet
Public Property HighlightColor As Color
```

### Examples

The following example highlights the current revision in a review-friendly color.

```csharp
TrackedChange trackedChange = textControl.TrackedChanges.GetItem();
if (trackedChange == null)
{
    return;
}
trackedChange.HighlightColor = System.Drawing.Color.LightGoldenrodYellow;
```

```vbnet
Dim trackedChange As TrackedChange = textControl.TrackedChanges.GetItem()
If trackedChange Is Nothing Then
    Return
End If
trackedChange.HighlightColor = System.Drawing.Color.LightGoldenrodYellow
```

---

## Nearby

- **Previous:** [TrackedChange.DefaultHighlightColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/defaulthighlightcolor-property/llms-full.txt)
- **Next:** [TrackedChange.HighlightMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/highlightmode-property/llms-full.txt)
