# DocumentTarget.Bounds Property

> Gets the bounding rectangle of a target. The bounding contains the top left and the bottom right coordinate of the text input position the target belongs to. The rectangle is given in twips with an origin at the upper left corner of the document. the left and the right coordinate are the same value.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 for WPF > Reference > TXTextControl > DocumentTarget.Bounds Property
- **426 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/bounds-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/bounds-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/bounds-property/llms-full.txt

---

### Description

Gets the bounding rectangle of a target. The bounding contains the top left and the bottom right coordinate of the text input position the target belongs to. The rectangle is given in twips with an origin at the upper left corner of the document. the left and the right coordinate are the same value.

### Syntax

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

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

### Examples

The following example creates a named destination for an internal document link by using `DocumentTarget.Bounds`.

```csharp
DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

Console.WriteLine($"Bounds: {documentTarget.Bounds}");
Console.WriteLine("Document Target is ready for use.");
```

```vbnet
Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)

Console.WriteLine($"Bounds: {documentTarget.Bounds}")
Console.WriteLine("Document Target is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DocumentTarget.AutoGenerationType Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/autogenerationtype-property/llms-full.txt)
- **Next:** [DocumentTarget Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documenttarget/constructor/llms-full.txt)
