TX Text Control .NET for Windows Forms

Pages Property

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

Description

Gets the number of pages contained in the current document.

Syntax

public int Pages { get; }

Examples

The following example checks the current page count before adding a forced page break.

if (textControl.Pages == 1)
{
    textControl.Selection.Text = "\fAppendix";
}

Limitations

Runtime only.

Read only.