# TextFrameEventArgs.TextFrame Property

> Gets an object that represents the text frame which causes the event. It is of the type TextFrame.

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

---

### Description

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

### Syntax

```csharp
public TextFrame TextFrame { get; }
```

```vbnet
Public ReadOnly Property TextFrame As TextFrame
```

### 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
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrameEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframeeventargs/llms-full.txt)
- **Next:** [TextFrameInsertionMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframeinsertionmode/enumeration/llms-full.txt)
