# PageCount Property

> Returns the number of pages the TXTextControl document contains, at least one for an empty document; a read-only Long property available at run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > PageCount Property
- **76 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagecount-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagecount-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagecount-property/llms-full.txt

---

Returns the number of pages, the document contains. An empty document has at least one page.

Introduced: 22.0.

### Syntax

```vbscript
TXTextControl.PageCount
```

### Data Types

Long.

### Limitations

Read only, run time only.

### See Also

- [Programming Category: Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt)

---

## Nearby

- **Previous:** [PageChanged Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagechanged-event/llms-full.txt)
- **Next:** [PageFormatChange Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageformatchange-event/llms-full.txt)
