# TextFrameEventArgs Class

> The TextFrameEventArgs class provides data for all events that occur with text frames. These are the TextControl.TextFrameActivated, TextControl.TextFrameDeactivated, TextControl.TextFrameCreated, TextControl.TextFrameDeleted, TextControl.TextFrameClicked,TextControl.TextFrameDoubleClicked, TextControl.TextFrameRightClicked, TextControl.TextFrameMoved, TextControl.TextFrameSelected, TextControl.TextFrameDeselected, and TextControl.TextFrameSized events.

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

---

### Description

The TextFrameEventArgs class provides data for all events that occur with text frames. These are the [TextControl.TextFrameActivated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframeactivated-event/llms-full.txt), [TextControl.TextFrameDeactivated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframedeactivated-event/llms-full.txt), [TextControl.TextFrameCreated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframecreated-event/llms-full.txt), [TextControl.TextFrameDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframedeleted-event/llms-full.txt), [TextControl.TextFrameClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframeclicked-event/llms-full.txt),[TextControl.TextFrameDoubleClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframedoubleclicked-event/llms-full.txt), [TextControl.TextFrameRightClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframerightclicked-event/llms-full.txt), [TextControl.TextFrameMoved](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframemoved-event/llms-full.txt), [TextControl.TextFrameSelected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframeselected-event/llms-full.txt), [TextControl.TextFrameDeselected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframedeselected-event/llms-full.txt), and [TextControl.TextFrameSized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textframesized-event/llms-full.txt) events.

### Syntax

```csharp
public class TextFrameEventArgs : EventArgs
```

```vbnet
Public Class TextFrameEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `TextFrameEventArgs.TextFrame` while handling `TextFrameClicked`.

```csharp
textControl.TextFrameClicked += (_, e) =>
{
    if (e.TextFrame != null)
    {
        e.TextFrame.DescriptiveText = "Quarterly sales by region";
    }
};
```

```vbnet
AddHandler textControl.TextFrameClicked,
    Sub(sender, e)
        If e.TextFrame IsNot Nothing Then
            e.TextFrame.DescriptiveText = "Quarterly sales by region"
        End If
    End Sub
```

---

## In This Section

- [TextFrameEventArgs.TextFrame Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframeeventargs/textframe-property/llms-full.txt): Gets an object that represents the text frame which causes the event. It is of the type TextFrame.

---

## Nearby

- **Previous:** [TextFrameCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframecollection/remove-method/llms-full.txt)
- **Next:** [TextFrameEventArgs.TextFrame Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframeeventargs/textframe-property/llms-full.txt)
