# Javascript: TextFrame.setLocation Method

> Sets, 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:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TextFrame.setLocation Method
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/#parameters)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setlocation-method/#examples)

---

## Nearby

- **Previous:** [Javascript: TextFrame.setInternalMargins Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setinternalmargins-method/llms.txt)
- **Next:** [Javascript: TextFrame.setMoveable Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textframe/setmoveable-method/llms.txt)
