Bounds Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the frame's bounding rectangle relative to the upper left corner of the document.
Syntax
public Rectangle Bounds { get; }Public ReadOnly Property Bounds As RectangleExamples
The following example adds a callout frame and works with it through the common frame API by using FrameBase.Bounds.
TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;
Console.WriteLine($"Bounds: {frameBase.Bounds}");
Console.WriteLine("Frame Base is ready for use.");Dim callout As New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout" }
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText)
Dim frameBase As FrameBase = callout
Console.WriteLine($"Bounds: {frameBase.Bounds}")
Console.WriteLine("Frame Base is ready for use.")Limitations
Read only.