# FrameEventArgs Class

> The FrameEventArgs class provides data for all events that occur with frames. A frame can be an image, a text frame, a chart, a barcode or a drawing.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.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 > FrameEventArgs Class
- **495 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/frameeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/frameeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/frameeventargs/llms-full.txt

---

### Description

The FrameEventArgs class provides data for all events that occur with frames. A frame can be an image, a text frame, a chart, a barcode or a drawing.

### Syntax

```csharp
public class FrameEventArgs : EventArgs
```

```vbnet
Public Class FrameEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `FrameEventArgs.Frame` while handling `FrameClicked`.

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

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

---

## In This Section

- [FrameEventArgs.Frame Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/frameeventargs/frame-property/llms-full.txt): Gets an object that represents the frame which causes the event. It is of the type Image, TextFrame, DataVisualization.ChartFrame, DataVisualization.BarcodeFrame or DataVisualization.DrawingFrame.

---

## Nearby

- **Previous:** [FrameCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framecollection/remove-method/llms-full.txt)
- **Next:** [FrameEventArgs.Frame Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/frameeventargs/frame-property/llms-full.txt)
