# TextFrameCollection Object

> Contains all text frames of a Text Control document or part of the document.

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

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/#members)

---

## In This Section

- [Javascript: TextFrameCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addanchored-method/llms.txt): Creates and inserts a new text frame which is anchored to the specified text position. It has the specified horizontal alignment and a textflow which is given through the insertionMode parameter. Anchored text frames are moved with the text.
- [Javascript: TextFrameCollection.addAnchoredAtLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addanchoredatlocation-method/llms.txt): Inserts a new text frame which is anchored to the specified text position. It has the specified location relative to the paragraph it is anchored to and a textflow which is given through the insertionMode parameter. Anchored text frame are moved with the text.
- [Javascript: TextFrameCollection.addAtFixedPositionInDocument Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addatfixedpositionindocument-method/llms.txt): Creates and inserts a new text frame which has a fixed geometrical position in the document. This position is specified through a location relative to the top left corner of the complete document. All gaps between the pages must be included.
- [Javascript: TextFrameCollection.addAtFixedPositionOnPage Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addatfixedpositiononpage-method/llms.txt): Inserts a new image which has a fixed geometrical position in the document. This position is specified through a page number and a location on this page.
- [Javascript: TextFrameCollection.addInline Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addinline-method/llms.txt): Inserts a text frame inline, which means that it is treated in the text like a single character. The text frame is inserted at the specified text input position.
- [Javascript: TextFrameCollection.addWithMouse Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addwithmouse-method/llms.txt): Inserts a text frame with the built-in mouse interface. The text frame's size is determined through the end-user. A cross cursor indicates where the text frame can be inserted. Changing the document aborts the insertion process.
- [Javascript: TextFrameCollection.getItem Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/getitem-method/llms.txt): Gets the text frame selected by the user or the text frame with the specified identifier.
- [Javascript: TextFrameCollection.getItemByName Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/getitembyname-method/llms.txt): Gets the text frame with the specified name.
- [Javascript: TextFrameCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/remove-method/llms.txt): Removes a text frame from a Text Control document.

---

## Nearby

- **Previous:** [TextFrameCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/textframecallback/llms.txt)
- **Next:** [Javascript: TextFrameCollection.addAnchored Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframecollection/addanchored-method/llms.txt)
