# DrawingEventArgs Class

> The DrawingEventArgs class provides data for all events that occur with drawings. These are the TextControl.DrawingCreated, TextControl.DrawingDeleted, TextControl.DrawingClicked, TextControl.DrawingDoubleClicked, TextControl.DrawingRightClicked, TextControl.DrawingMoved TextControl.DrawingSelected, TextControl.DrawingDeselected TextControl.DrawingActivated, TextControl.DrawingDeactivated and TextControl.DrawingSized events.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DataVisualization > DrawingEventArgs Class
- **761 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt

---

### Description

The DrawingEventArgs class provides data for all events that occur with drawings. These are the [TextControl.DrawingCreated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingcreated-event/llms-full.txt), [TextControl.DrawingDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingdeleted-event/llms-full.txt), [TextControl.DrawingClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingclicked-event/llms-full.txt), [TextControl.DrawingDoubleClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingdoubleclicked-event/llms-full.txt), [TextControl.DrawingRightClicked](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingrightclicked-event/llms-full.txt), [TextControl.DrawingMoved](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingmoved-event/llms-full.txt) [TextControl.DrawingSelected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingselected-event/llms-full.txt), [TextControl.DrawingDeselected](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingdeselected-event/llms-full.txt) [TextControl.DrawingActivated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingactivated-event/llms-full.txt), [TextControl.DrawingDeactivated](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingdeactivated-event/llms-full.txt) and [TextControl.DrawingSized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/drawingsized-event/llms-full.txt) events.

### Syntax

```csharp
public class DrawingEventArgs : EventArgs
```

```vbnet
Public Class DrawingEventArgs
    Inherits EventArgs
```

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

---

## In This Section

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

---

## Nearby

- **Previous:** [DrawingCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingcollection/remove-method/llms-full.txt)
- **Next:** [DrawingEventArgs.DrawingFrame Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/drawingeventargs/drawingframe-property/llms-full.txt)
