# EditableRegion.HighlightColor Property

> Gets or sets the highlight color for the editable region. The color's alpha value must be less than 255 (opaque) so that the editable region's text remains visible. The default value is green with an alpha value of 60. If the highlight color is EditableRegion.DefaultHighlightColor and a user name is specified, the highlight color is set to a color depending on the user name.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > EditableRegion.HighlightColor Property
- **646 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/highlightcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/highlightcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/highlightcolor-property/llms-full.txt

---

### Description

Gets or sets the highlight color for the editable region. The color's alpha value must be less than 255 (opaque) so that the editable region's text remains visible. The default value is green with an alpha value of 60. If the highlight color is [EditableRegion.DefaultHighlightColor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/defaulthighlightcolor-property/llms-full.txt) and a user name is specified, the highlight color is set to a color depending on the user name.

### Syntax

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

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

### Examples

The following example marks selected contract text as editable by the review team by using `EditableRegion.HighlightColor`.

```csharp
textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);

editableRegion.HighlightColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Highlight Color used by Editable Region: {editableRegion.HighlightColor}");
```

```vbnet
textControl.Text = "Terms subject to legal review"
textControl.Select(0, textControl.Text.Length)
Dim editableRegion As New EditableRegion("ReviewTeam", 10)
textControl.EditableRegions.Add(editableRegion)

editableRegion.HighlightColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Highlight Color used by Editable Region: {editableRegion.HighlightColor}")
```

---

## Nearby

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