TX Text Control .NET for Windows Forms

Rectangle Property

Property|Introduced in 29.0
Namespace
TXTextControl.DocumentServer.PDF.Contents
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Returns the rectangle bounds of the line.

Syntax

public RectangleF Rectangle { get; }

Examples

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

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