# Shape Constructor

> Initializes a new instance of the Shape class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Drawing > Shape Constructor
- **635 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/constructor/llms-full.txt

---

### Description

Initializes a new instance of the [Shape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/llms-full.txt) class.

### Syntax

#### Shape()

Creates a new instance of the [Shape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/llms-full.txt) class by the [ShapeType](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shapetype/enumeration/llms-full.txt) type ShapeType.Custom.

```csharp
public Shape();
```

```vbnet
Public Sub New()
```

#### Shape(ShapeType)

Initializes a new instance of the [Shape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/llms-full.txt) class by a specific [ShapeType](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shapetype/enumeration/llms-full.txt) type.

```csharp
public Shape(ShapeType type);
```

```vbnet
Public Sub New(type As ShapeType)
```

| Parameter | Description |
|---|---|
| type | Specifies the shape's [type](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shapetype/enumeration/llms-full.txt). |

#### Shape(Shape)

```csharp
public Shape(Shape shape);
```

```vbnet
Public Sub New(shape As Shape)
```

### Examples

The following example creates a Shape instance and configures its angle setting for a document workflow.

```csharp
TXTextControl.Drawing.Shape shape = new();
shape.Angle = 10;
```

```vbnet
Dim shape As New TXTextControl.Drawing.Shape()
shape.Angle = 10
```

---

## Nearby

- **Previous:** [Shape.CanFitToCanvas Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/canfittocanvas-property/llms-full.txt)
- **Next:** [Shape.Fill Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape-fill/llms-full.txt)
