# ShapeEventArgs Class

> The ShapeEventArgs class provides data for all events that occur with shapes. These are the TXDrawingControl.ShapeAdjusted, TXDrawingControl.ShapeClicked, TXDrawingControl.ShapeCreated, TXDrawingControl.ShapeDeleted, TXDrawingControl.ShapeDeselected, TXDrawingControl.ShapeFlipped, TXDrawingControl.ShapeFormatChanged, TXDrawingControl.ShapeMoved, TXDrawingControl.ShapeSelected and TXDrawingControl.ShapeSized events.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.Drawing > ShapeEventArgs Class
- **829 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapeeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapeeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapeeventargs/llms-full.txt

---

### Description

The ShapeEventArgs class provides data for all events that occur with [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/llms-full.txt). These are the [TXDrawingControl.ShapeAdjusted](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapeadjusted-event/llms-full.txt), [TXDrawingControl.ShapeClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapeclicked-event/llms-full.txt), [TXDrawingControl.ShapeCreated](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapecreated-event/llms-full.txt), [TXDrawingControl.ShapeDeleted](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapedeleted-event/llms-full.txt), [TXDrawingControl.ShapeDeselected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapedeselected-event/llms-full.txt), [TXDrawingControl.ShapeFlipped](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapeflipped-event/llms-full.txt), [TXDrawingControl.ShapeFormatChanged](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapeformatchanged-event/llms-full.txt), [TXDrawingControl.ShapeMoved](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapemoved-event/llms-full.txt), [TXDrawingControl.ShapeSelected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapeselected-event/llms-full.txt) and [TXDrawingControl.ShapeSized](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapesized-event/llms-full.txt) events.

### Syntax

```csharp
public class ShapeEventArgs : EventArgs
```

```vbnet
Public Class ShapeEventArgs
    Inherits EventArgs
```

### Examples

The following example includes the shape value from a Shape Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Shape: {shapeEventArgs.Shape}");
Console.WriteLine("Shape Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Shape: {shapeEventArgs.Shape}")
Console.WriteLine("Shape Event Args is ready for use.")
```

---

## In This Section

- [ShapeEventArgs.Shape Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapeeventargs/shape-property/llms-full.txt): Gets an object of type Shape that represents the shape which causes the event.

---

## Nearby

- **Previous:** [ShapeCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapecollection/remove-method/llms-full.txt)
- **Next:** [ShapeEventArgs.Shape Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shapeeventargs/shape-property/llms-full.txt)
