# SectionCollection Object

> Contains all sections of a document. A document has at least one section.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > SectionCollection Object
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/#members)

---

## In This Section

- [Javascript: SectionCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/add-method/llms.txt): Adds a new section at the current 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.
- [Javascript: SectionCollection.addAtTextPosition Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/addattextposition-method/llms.txt): 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.
- [Javascript: SectionCollection.getItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/getitem-method/llms.txt): Gets the section at the current input position or or the section in the collection with the given number.

---

## Nearby

- **Previous:** [Javascript: Section.select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/section/select-method/llms.txt)
- **Next:** [Javascript: SectionCollection.add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/sectioncollection/add-method/llms.txt)
