# TextControl.TextFrameMoved Event

> Occurs when a text frame has been moved. It does not occur, if an inline or anchored text frame has been moved because text has been inserted. The event handler receives an argument of type TextFrameEventArgs 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.TextFrameMoved Event
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframemoved-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframemoved-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframemoved-event/llms-full.txt

---

### Description

Occurs when a text frame has been moved. It does not occur, if an inline or anchored text frame has been moved because text has been inserted. The event handler receives an argument of type [TextFrameEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframeeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event TextFrameEventHandler TextFrameMoved;
```

```vbnet
Public Event TextFrameMoved As TextFrameEventHandler
```

### Examples

The following example records useful context when text frame moved occurs.

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

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

---

## Nearby

- **Previous:** [TextControl.TextFrameMarkerLines Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframemarkerlines-property/llms-full.txt)
- **Next:** [TextControl.TextFrameRightClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframerightclicked-event/llms-full.txt)
