# TableOfContentsCollectionAddParams Object

> The method parameters for the TableOfContentsCollection.add() method.

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

---

### Description

The method parameters for the [TableOfContentsCollection](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollection/llms-full.txt).add() method.

### Syntax

```javascript
{
   [title: <string>],
   [hasLinks: <boolean>],
   [hasPageNumbers: <boolean>],
   [hasRightAlignedPageNumbers: <boolean>],
   [minimumStructureLevel: <number>],
   [maximumStructureLevel: <number>]
}
```

### Examples

The following example demonstrates `TableOfContentsCollectionAddParams` in a practical document-editing workflow. The method parameters for the TableOfContentsCollection.add() method.

```javascript
function inspectTableOfContentsCollectionAddParams(tableOfContentsCollectionAddParams) {
    console.log("title:", tableOfContentsCollectionAddParams.title);
    console.log("has links:", tableOfContentsCollectionAddParams.hasLinks);
    console.log("has page numbers:", tableOfContentsCollectionAddParams.hasPageNumbers);
    console.log("has right aligned page numbers:", tableOfContentsCollectionAddParams.hasRightAlignedPageNumbers);
}
```

---

## In This Section

- [Javascript: TableOfContentsCollectionAddParams.hasLinks Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/haslinks-property/llms-full.txt): Optional. Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.
- [Javascript: TableOfContentsCollectionAddParams.hasPageNumbers Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/llms-full.txt): Optional. Specifies whether the table of contents contains page numbers.
- [Javascript: TableOfContentsCollectionAddParams.hasRightAlignedPageNumbers Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/hasrightalignedpagenumbers-property/llms-full.txt): Optional. Specifies whether the page numbers in the table of contents are right-aligned.
- [Javascript: TableOfContentsCollectionAddParams.maximumStructureLevel Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/maximumstructurelevel-property/llms-full.txt): Optional. The minimum structure level for this table of contents.
- [Javascript: TableOfContentsCollectionAddParams.minimumStructureLevel Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/minimumstructurelevel-property/llms-full.txt): Optional. The maximum structure level for this table of contents.
- [Javascript: TableOfContentsCollectionAddParams.title Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/title-property/llms-full.txt): Optional. The title for the table of contents.

---

## Nearby

- **Previous:** [Javascript: TableOfContentsCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollection/remove-method/llms-full.txt)
- **Next:** [Javascript: TableOfContentsCollectionAddParams.hasLinks Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/haslinks-property/llms-full.txt)
