Gets the bounding rectangle of the page, in twips, relative to the top of the document.

Syntax

public Rectangle Bounds { get; }
Public ReadOnly Property Bounds() As Rectangle

Examples

The following example uses Bounds property to get the bounding rectangle of the page, in twips, relative to the top of the document.

textControl1.ViewMode = TXTextControl.ViewMode.PageView;

for (int i = 0; i < 100; i++)
    textControl1.Selection.Text = new string('a', 200);

textControl1.ScrollLocation = new Point(textControl1.ScrollLocation.X,
                              textControl1.GetPages()[2].Bounds.Top);
TextControl1.ViewMode = TXTextControl.ViewMode.PageView

For i = 1 To 100
    TextControl1.Selection.Text = New String("a", 200)
    i = i + 1
Next

TextControl1.ScrollLocation = New Point(TextControl1.ScrollLocation.X, _
                              TextControl1.GetPages()(2).Bounds.Top)

Limitations

Read only.