Pages Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets the number of pages contained in the current document.
Syntax
public int Pages { get; }Public ReadOnly Property Pages As IntegerExamples
The following example checks the current page count before adding a forced page break.
if (textControl.Pages == 1)
{
textControl.Selection.Text = "\fAppendix";
}If textControl.Pages = 1 Then
textControl.Selection.Text = ChrW(12) & "Appendix"
End IfLimitations
Runtime only.
Read only.