TX Text Control .NET for WPF

Bounds Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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

public Rectangle Bounds { get; }

Examples

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

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

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

Limitations

Read only.