TX Text Control .NET Server

PageInSection Property

Property|Introduced in 14.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

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.

Syntax

public int PageInSection { get; }

Examples

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

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

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

Limitations

Read only.