# Javascript: SectionCollection.addAtTextPosition Method

> Adds a new section at the specified text input position. The new section ends at the end position of the section containing the input position. If a new section is inserted in a paragraph or table, the paragraph or table is split into two paragraphs or tables.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SectionCollection.addAtTextPosition Method
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/#syntax)
- [Parameters](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/#parameters)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/addattextposition-method/#examples)

---

## Nearby

- **Previous:** [Javascript: SectionCollection.add Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/add-method/llms.txt)
- **Next:** [Javascript: SectionCollection.getItem Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectioncollection/getitem-method/llms.txt)
