# Contents.ContentLine.Rectangle Property

> Returns the rectangle bounds of the line.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.DocumentServer.PDF.Contents`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.PDF > Contents.ContentLine.Rectangle Property
- **287 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-contentline/rectangle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-contentline/rectangle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-contentline/rectangle-property/llms-full.txt

---

### Description

Returns the rectangle bounds of the line.

### Syntax

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

```vbnet
Public ReadOnly Property Rectangle As RectangleF
```

### Examples

The following example includes the rectangle value in application diagnostics. The configured value is checked before the workflow continues.

```csharp
Console.WriteLine($"Rectangle: {contentLine.Rectangle}");
Console.WriteLine($"Y used by Content Line: {contentLine.Y}");
```

```vbnet
Console.WriteLine($"Rectangle: {contentLine.Rectangle}")
Console.WriteLine($"Y used by Content Line: {contentLine.Y}")
```

---

## Nearby

- **Previous:** [Contents.ContentLine.Page Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-contentline/page-property/llms-full.txt)
- **Next:** [Contents.ContentLine.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-contentline/text-property/llms-full.txt)
