# TextControl.CommentedTextEntered Event

> Occurs when the current input position has been moved to a position that belongs to a commented piece of text. The event handler receives an argument of type CommentEventArgs containing data related to this event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 30.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.CommentedTextEntered Event
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/commentedtextentered-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/commentedtextentered-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/commentedtextentered-event/llms-full.txt

---

### Description

Occurs when the current input position has been moved to a position that belongs to a commented piece of text. The event handler receives an argument of type [CommentEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/commenteventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event CommentEventHandler CommentedTextEntered;
```

```vbnet
Public Event CommentedTextEntered As CommentEventHandler
```

### Examples

The following example records useful context when commented text entered occurs.

```csharp
textControl.CommentedTextEntered += (sender, e) =>
{
    Console.WriteLine($"Commented Text Entered at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.CommentedTextEntered,
    Sub(sender, e)
        Console.WriteLine($"Commented Text Entered at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.CommentDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/commentdeleted-event/llms-full.txt)
- **Next:** [TextControl.CommentedTextLeft Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/commentedtextleft-event/llms-full.txt)
