# Javascript: TableOfContentsCollectionAddParams.hasPageNumbers Property

> Optional. 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: TableOfContentsCollectionAddParams.hasPageNumbers Property
- **187 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/llms-full.txt

---

### Description

Optional. Specifies whether the table of contents contains page numbers.

### Syntax

```javascript
<boolean> TableOfContentsCollectionAddParams.hasPageNumbers
```

### Examples

The following example demonstrates `TableOfContentsCollectionAddParams.hasPageNumbers` in a practical document-editing workflow. Optional. Specifies whether the table of contents contains page numbers.

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

---

## Nearby

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