# Javascript: TableOfContentsCollectionAddParams.hasRightAlignedPageNumbers Property

> Optional. Specifies whether the page numbers in the table of contents are right-aligned.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableOfContentsCollectionAddParams.hasRightAlignedPageNumbers Property
- **208 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/hasrightalignedpagenumbers-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/hasrightalignedpagenumbers-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/hasrightalignedpagenumbers-property/llms-full.txt

---

### Description

Optional. Specifies whether the page numbers in the table of contents are right-aligned.

### Syntax

```javascript
<boolean> TableOfContentsCollectionAddParams.hasRightAlignedPageNumbers
```

### Examples

The following example demonstrates `TableOfContentsCollectionAddParams.hasRightAlignedPageNumbers` in a practical document-editing workflow. Optional. Specifies whether the page numbers in the table of contents are right-aligned.

```javascript
function inspectHasRightAlignedPageNumbers(tableOfContentsCollectionAddParams) {
    const hasRightAlignedPageNumbers = tableOfContentsCollectionAddParams.hasRightAlignedPageNumbers;
    console.log("has right aligned page numbers:", hasRightAlignedPageNumbers);
}
```

---

## Nearby

- **Previous:** [Javascript: TableOfContentsCollectionAddParams.hasPageNumbers Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/llms-full.txt)
- **Next:** [Javascript: TableOfContentsCollectionAddParams.maximumStructureLevel Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/maximumstructurelevel-property/llms-full.txt)
