# Shape.Type Property

> Gets or sets the shape's type. The default value is Drawing.ShapeType.Custom.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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.Type Property
- **331 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/type-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/type-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/type-property/llms-full.txt

---

### Description

Gets or sets the [shape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/llms-full.txt)'s [type](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shapetype/enumeration/llms-full.txt). The default value is Drawing.ShapeType.Custom.

### Syntax

```csharp
public ShapeType Type { get; set; }
```

```vbnet
Public Property Type As ShapeType
```

### Examples

The following example uses `Shape.Type` to configure type as part of the shape workflow. The configured value is checked before the workflow continues.

```csharp
shape.Type = TXTextControl.Drawing.ShapeType.Line;
Console.WriteLine($"Type used by Shape: {shape.Type}");
```

```vbnet
shape.Type = TXTextControl.Drawing.ShapeType.Line
Console.WriteLine($"Type used by Shape: {shape.Type}")
```

---

## Nearby

- **Previous:** [Shape.Size Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/size-property/llms-full.txt)
- **Next:** [ShapeCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shapecollection/llms-full.txt)
