# Javascript: TableOfContentsInfo.hasPageNumbers Property

> Specifies whether the table of contents contains page numbers.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableOfContentsInfo.hasPageNumbers Property
- **173 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/llms-full.txt

---

### Description

Specifies whether the table of contents contains page numbers.

### Syntax

```javascript
<boolean> TableOfContentsInfo.hasPageNumbers
```

### Examples

The following example demonstrates `TableOfContentsInfo.hasPageNumbers` in a practical document-editing workflow. It specifies whether the table of contents contains page numbers.

```javascript
function inspectHasPageNumbers(tableOfContentsInfo) {
    const hasPageNumbers = tableOfContentsInfo.hasPageNumbers;
    console.log("has page numbers:", hasPageNumbers);
}
```

---

## Nearby

- **Previous:** [Javascript: TableOfContentsInfo.hasLinks Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/llms-full.txt)
- **Next:** [Javascript: TableOfContentsInfo.hasRightAlignedPageNumbers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/hasrightalignedpagenumbers-property/llms-full.txt)
