# TextControl.CommentHighlightMode Property

> Gets or sets a value indicating whether all the commented texts in the document are highlighted.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 30.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.CommentHighlightMode Property
- **378 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/commenthighlightmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/commenthighlightmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/commenthighlightmode-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether all the commented texts in the document are highlighted.

### Syntax

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

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

### Members

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

### Examples

The following example uses `TextControl.CommentHighlightMode` to configure comment highlight mode as part of the text control workflow. The change is then applied to the active document or user interface.

```csharp
textControl.CommentHighlightMode = HighlightMode.Never;
textControl.Update();
```

```vbnet
textControl.CommentHighlightMode = HighlightMode.Never
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.CommentedTextLeft Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/commentedtextleft-event/llms-full.txt)
- **Next:** [TextControl.Comments Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/comments-property/llms-full.txt)
