# TextControl.Changed Event

> Indicates that the contents of a document have been changed. The event handler receives an argument of type EventArgs containing data related to this event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 16.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.Changed Event
- **289 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/changed-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/changed-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/changed-event/llms-full.txt

---

### Description

Indicates that the contents of a document have been changed. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler Changed;
```

```vbnet
Public Event Changed As EventHandler
```

### Examples

The following example records useful context when changed occurs.

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

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

---

## Nearby

- **Previous:** [TextControl.CaretWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/caretwidth-property/llms-full.txt)
- **Next:** [TextControl.CharFormatChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/charformatchanged-event/llms-full.txt)
