# Javascript: TextFrame.getLocation Method

> Gets, in twips, the frame's current location. If the image, text frame, chart, barcode or drawing is anchored to a paragraph, the location is relative to the paragraph. Otherwise, it is relative to the document. If the frame has a horizontal alignment or if it is inserted inline, this property returns zero. This property cannot be set for images, text frames, charts, barcodes or drawings which are inserted inline.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [Javascript: TextFrame.getInternalMargins Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframe/getinternalmargins-method/llms.txt)
- **Next:** [Javascript: TextFrame.getMoveable Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframe/getmoveable-method/llms.txt)
