TX Text Control .NET for Windows Forms

Page Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public int Page { get; }

Examples

The following example examines or changes the insertion point in a short document by using InputPosition.Page.

textControl.Text = "Project summary";
InputPosition inputPosition = textControl.InputPosition;

Console.WriteLine($"Page: {inputPosition.Page}");
Console.WriteLine("Input Position is ready for use.");

Limitations

Read only.

Further Reading