# DrawingEventArgs.DrawingFrame Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DataVisualization`
- **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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DataVisualization > DrawingEventArgs.DrawingFrame Property
- **422 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/drawingframe-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/drawingframe-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/drawingframe-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public DrawingFrame DrawingFrame { get; }
```

```vbnet
Public ReadOnly Property DrawingFrame As DrawingFrame
```

### Examples

The following example uses `DrawingEventArgs.DrawingFrame` while handling `DrawingClicked`.

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [DrawingEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt)
- **Next:** [DrawingFrame Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingframe/llms-full.txt)
