# Shape.Size Property

> Gets or sets the shape's current size. The values are given in twips. The default values for Size.Width and Size.Height correspond to one half the smallest control side.

- **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.Size Property
- **363 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/size-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/size-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/size-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 current size. The values are given in twips. The default values for Size.Width and Size.Height correspond to one half the smallest control side.

### Syntax

```csharp
public Size Size { get; set; }
```

```vbnet
Public Property Size As Size
```

### Examples

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

```csharp
shape.Size = new System.Drawing.Size(600, 400);
Console.WriteLine($"Size used by Shape: {shape.Size}");
```

```vbnet
shape.Size = New System.Drawing.Size(600, 400)
Console.WriteLine($"Size used by Shape: {shape.Size}")
```

---

## Nearby

- **Previous:** [Shape.Sizable Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/sizable-property/llms-full.txt)
- **Next:** [Shape.Type Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/type-property/llms-full.txt)
