# TextField.Bounds Property

> Gets the bounding rectangle of a text field. The bounding rectangle is the smallest rectangle which contains all characters of the field's text. The rectangle is given in twips with an origin at the upper left corner of the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TextField.Bounds Property
- **499 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/bounds-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/bounds-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/bounds-property/llms-full.txt

---

### Description

Gets the bounding rectangle of a text field. The bounding rectangle is the smallest rectangle which contains all characters of the field's text. The rectangle is given in twips with an origin at the upper left corner of the document.

### Syntax

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

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

### Examples

The following example inserts a Word-compatible text field into a template by using `TextField.Bounds`.

```csharp
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

Console.WriteLine($"Bounds: {textField.Bounds}");
Console.WriteLine("Text Field is ready for use.");
```

```vbnet
Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)

Console.WriteLine($"Bounds: {textField.Bounds}")
Console.WriteLine("Text Field is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextField Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/llms-full.txt)
- **Next:** [TextField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/constructor/llms-full.txt)
