# Javascript: TableOfContentsInfo.hasRightAlignedPageNumbers Property

> 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: TableOfContentsInfo.hasRightAlignedPageNumbers Property
- **194 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentsinfo/hasrightalignedpagenumbers-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentsinfo/hasrightalignedpagenumbers-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentsinfo/hasrightalignedpagenumbers-property/llms-full.txt

---

### Description

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

### Syntax

```javascript
<boolean> TableOfContentsInfo.hasRightAlignedPageNumbers
```

### Examples

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

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

---

## Nearby

- **Previous:** [Javascript: TableOfContentsInfo.hasPageNumbers Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/llms-full.txt)
- **Next:** [Javascript: TableOfContentsInfo.highlightColor Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentsinfo/highlightcolor-property/llms-full.txt)
