# ChartEventArgs.ChartFrame Property

> Gets an object that represents the chart which causes the event. It is of the type DataVisualization.ChartFrame.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 18.0
- **Namespace:** `TXTextControl.DataVisualization`
- **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.DataVisualization > ChartEventArgs.ChartFrame Property
- **417 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/charteventargs/chartframe-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/charteventargs/chartframe-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/charteventargs/chartframe-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public ChartFrame ChartFrame { get; }
```

```vbnet
Public ReadOnly Property ChartFrame As ChartFrame
```

### Examples

The following example uses `ChartEventArgs.ChartFrame` while handling `ChartClicked`.

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [ChartEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/charteventargs/llms-full.txt)
- **Next:** [ChartFrame Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/llms-full.txt)
