TextBounds Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets the bounding rectangle of the page's text, in twips, relative to the top of the document.
Syntax
public Rectangle TextBounds { get; }Public ReadOnly Property TextBounds As RectangleExamples
The following example works with the first laid-out page of a short report by using Page.TextBounds.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Page page = textControl.GetPages()[1];
Console.WriteLine($"Text Bounds: {page.TextBounds}");
Console.WriteLine("Page is ready for use.");
page.Select();textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim page As Page = textControl.GetPages().Item(1)
Console.WriteLine($"Text Bounds: {page.TextBounds}")
Console.WriteLine("Page is ready for use.")
page.Select()Limitations
Read only.