# StatusBarViewGenerator.ShowPageCounter Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > StatusBarViewGenerator.ShowPageCounter Property
- **383 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/showpagecounter-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/showpagecounter-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/showpagecounter-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public bool ShowPageCounter { get; set; }
```

```vbnet
Public Property ShowPageCounter As Boolean
```

### 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.

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

```vbnet
statusBarViewGenerator.ShowPageCounter = True
If statusBarViewGenerator.ShowPageCounter Then
    Console.WriteLine("Status Bar View Generator: Show Page Counter is enabled.")
End If
```

---

## Nearby

- **Previous:** [StatusBarViewGenerator.ShowPage Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/showpage-property/llms-full.txt)
- **Next:** [StatusBarViewGenerator.ShowSection Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/showsection-property/llms-full.txt)
