# Shape.Bounds Property

> Gets or sets the bounding rectangle of the shape. The values are given in twips with an origin at the upper left corner of the TX Drawing Control. The default value correspond to the shape's default Location and Size values.

- **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.Bounds Property
- **482 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/bounds-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/bounds-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/bounds-property/llms-full.txt

---

### Description

Gets or sets the bounding rectangle of the [shape](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/llms-full.txt). The values are given in twips with an origin at the upper left corner of the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt). The default value correspond to the shape's default [Location](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/location-property/llms-full.txt) and [Size](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/shape/size-property/llms-full.txt) values.

### Syntax

```csharp
public Rectangle Bounds { get; set; }
```

```vbnet
Public Property Bounds As Rectangle
```

### Examples

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

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

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

---

## Nearby

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