Gets the page number in the section containing the current text input position. This property returns the page number only if the TextControl.ViewMode property has been set to ViewMode.PageView.

Introduced: 14.0.


public int PageInSection { get; }
Public ReadOnly Property PageInSection() As Integer


This example explains an easy use of the 'TXTextControl.PageInSection' property. Here, the 'PageInSection' number is stored in a variable of the type 'int'. Please do not forget to set the 'ViewMode' to 'PageView'.

textControl1.ViewMode = TXTextControl.ViewMode.PageView; // has to be set to this 'ViewMode'
int currPageSection = textControl1.InputPosition.PageInSection;
TextControl1.ViewMode = TXTextControl.ViewMode.PageView ' has to be set to this 'ViewMode'
Dim currPageSection As Integer = TextControl1.InputPosition.PageInSection


Read only.