# DrawShapeEventArgs Class

> The DrawShapeEventArgs class contains information to draw additional parts necessary when the user interacts with the document. These additional parts are the frame shown during an image or textframe is moved or sized and the line shown during the width of a table cell is changed. This class is used with the ServerVisualization.TextViewGenerator.DrawShape event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > DrawShapeEventArgs Class
- **628 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/llms-full.txt

---

### Description

The DrawShapeEventArgs class contains information to draw additional parts necessary when the user interacts with the document. These additional parts are the frame shown during an image or textframe is moved or sized and the line shown during the width of a table cell is changed. This class is used with the [ServerVisualization.TextViewGenerator.DrawShape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/drawshape-event/llms-full.txt) event.

### Syntax

```csharp
public class DrawShapeEventArgs : EventArgs
```

```vbnet
Public Class DrawShapeEventArgs
    Inherits EventArgs
```

### Examples

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

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

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

---

## In This Section

- [DrawShapeEventArgs.Kind Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/kind-property/llms-full.txt): Gets the kind of the shape. It can be one of the ServerVisualization.DrawShapeEventArgs.Shape values.
- [DrawShapeEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/location-property/llms-full.txt): Gets the location of the shape, in pixels.
- [DrawShapeEventArgs.Shape Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/shape-enumeration/llms-full.txt): Determines a shape to be drawn during the DrawShape event. It contains the following values:
- [DrawShapeEventArgs.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/size-property/llms-full.txt): Gets the size of the shape, in pixels.

---

## Nearby

- **Previous:** [DrawDateControlEventArgs.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawdatecontroleventargs/location-property/llms-full.txt)
- **Next:** [DrawShapeEventArgs.Kind Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/kind-property/llms-full.txt)
