Bounds Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property Bounds As RectangleExamples
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.");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.