# EditableRegion.DefaultHighlightColor Property

> Gets the default highlight color of an editable region. If the highlight color of an editable region is this default color and a user name is specified, the highlight color is set to a color depending on the user name.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.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 > EditableRegion.DefaultHighlightColor Property
- **593 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregion/defaulthighlightcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregion/defaulthighlightcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregion/defaulthighlightcolor-property/llms-full.txt

---

### Description

Gets the default highlight color of an editable region. If the highlight color of an editable region is this default color and a user name is specified, the highlight color is set to a color depending on the user name.

### Syntax

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

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

### Examples

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

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

Console.WriteLine($"Default Highlight Color: {EditableRegion.DefaultHighlightColor}");
Console.WriteLine("Editable Region is ready for use.");
```

```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)

Console.WriteLine($"Default Highlight Color: {EditableRegion.DefaultHighlightColor}")
Console.WriteLine("Editable Region is ready for use.")
```

---

## Nearby

- **Previous:** [EditableRegion Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregion/constructor/llms-full.txt)
- **Next:** [EditableRegion.HighlightColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregion/highlightcolor-property/llms-full.txt)
