TX Text Control .NET Server

ShowPageCounter Property

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

Description

Specifies whether the status bar shows the number of pages the document consists of.

Syntax

public bool ShowPageCounter { get; set; }

Examples

The following example uses StatusBarViewGenerator.ShowPageCounter to configure show page counter as part of the status bar view generator workflow. The configured value is checked before the workflow continues.

statusBarViewGenerator.ShowPageCounter = true;
if (statusBarViewGenerator.ShowPageCounter)
{
    Console.WriteLine("Status Bar View Generator: Show Page Counter is enabled.");
}