# DrawShapeEventArgs.Shape Enumeration

> Determines a shape to be drawn during the DrawShape event. It contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **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
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > DrawShapeEventArgs.Shape Enumeration
- **565 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/shape-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/shape-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/drawshapeeventargs/shape-enumeration/llms-full.txt

---

### Description

Determines a shape to be drawn during the [DrawShape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/drawshape-event/llms-full.txt) event. It contains the following values:

### Syntax

```csharp
public enum DrawShapeEventArgs.Shape
```

```vbnet
Public Enum DrawShapeEventArgs.Shape
```

### Members

| Member | Value | Description |
|---|---|---|
| DropCaret | 3 | Determines the rectangle indicating the text input position where text is inserted during a drag and drop operation. |
| MoveAndSizeFrame | 1 | Determines the frame which is drawn when an image or textframe is moved or sized. |
| TableBorderMovingLine | 2 | Determines the line which is drawn when the width of a table cell is changed. This shape's horizontal size is set to 1 pixel. |

### Examples

The following example selects the Move And Size Frame value from the Shape enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape value = TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape.MoveAndSizeFrame;
Console.WriteLine($"Using Shape: {value}");
```

```vbnet
Dim value As TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape = TXTextControl.ServerVisualisation.DrawShapeEventArgs.Shape.MoveAndSizeFrame
Console.WriteLine($"Using Shape: {value}")
```

---

## Nearby

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