# CommentedText.DefaultHighlightColor Property

> Gets the default highlight color for the commented text. This color is used when the commentator is unknown. When the commentator is the current user, the highlight color is red.

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

---

### Description

Gets the default highlight color for the commented text. This color is used when the commentator is unknown. When the commentator is the current user, the highlight color is red.

### Syntax

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

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

### Examples

The following example attaches a reviewer comment to selected contract text by using `CommentedText.DefaultHighlightColor`.

```csharp
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
CommentedText commentedText = new("Verify the payment term.");
textControl.Comments.Add(commentedText);

Console.WriteLine($"Default Highlight Color: {CommentedText.DefaultHighlightColor}");
Console.WriteLine("Commented Text is ready for use.");
```

```vbnet
textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
Dim commentedText As New CommentedText("Verify the payment term.")
textControl.Comments.Add(commentedText)

Console.WriteLine($"Default Highlight Color: {CommentedText.DefaultHighlightColor}")
Console.WriteLine("Commented Text is ready for use.")
```

---

## Nearby

- **Previous:** [CommentedText.CreationTime Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/commentedtext/creationtime-property/llms-full.txt)
- **Next:** [CommentedText.EditComment Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/commentedtext/editcomment-method/llms-full.txt)
