# FrameBase Object

> The FrameBase object is the base of the Image, TextFrame and BarcodeFrame object. It implements general frame features like the position in the text, the insertion mode or the distances between the text and the frame.

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

---

## On This Page

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

---

## In This Section

- [Javascript: FrameBase.changeZOrder Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/changezorder-method/llms.txt): Changes the frame's z-order.
- [Javascript: FrameBase.getAlignment Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getalignment-method/llms.txt): Gets the frame's horizontal alignment when it is anchored to a paragraph.
- [Javascript: FrameBase.getBounds Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getbounds-method/llms.txt): Gets the frame's bounding rectangle relative to the upper left corner of the document.
- [Javascript: FrameBase.getDescriptiveText Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getdescriptivetext-method/llms.txt): Gets the descriptive text for the frame. An empty string indicates that the frame has no such text.
- [Javascript: FrameBase.getID Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getid-method/llms.txt): Gets an identifier for the frame. A value of zero indicates that the image, text frame, chart, barcode or drawing has no identifier.
- [Javascript: FrameBase.getInsertionMode Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getinsertionmode-method/llms.txt): Gets a value determining whether the frame is treated as a single character or the document's text either flows around or overwrites the frame. If the document's text flows around or overwrites the frame, this property also determines whether the image, text frame, chart, barcode or drawing is moved with the text or fixed positioned on a page.
- [Javascript: FrameBase.getLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getlocation-method/llms.txt): 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.
- [Javascript: FrameBase.getMoveable Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getmoveable-method/llms.txt): Gets whether a frame can be moved in the document at run time with the built-in mouse interface.
- [Javascript: FrameBase.getName Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getname-method/llms.txt): Gets the name for the frame. An empty string indicates that the frame has no name.
- [Javascript: FrameBase.getSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getsize-method/llms.txt): Gets the frame's size in twips.
- [Javascript: FrameBase.getSizeable Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/getsizeable-method/llms.txt): Gets whether the frame can be resized at run time with the built-in mouse interface.
- [Javascript: FrameBase.getTextDistances Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/gettextdistances-method/llms.txt): Gets the distances, in twips, between the frame and the document's text.
- [Javascript: FrameBase.getTextPosition Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/gettextposition-method/llms.txt): Gets the frame's character position in the document's text (one-based).
- [Javascript: FrameBase.setAlignment Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setalignment-method/llms.txt): Sets the frame's horizontal alignment when it is anchored to a paragraph.
- [Javascript: FrameBase.setDescriptiveText Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setdescriptivetext-method/llms.txt): Sets a descriptive text for the frame. An empty string or null can be used to delete a previously set text.
- [Javascript: FrameBase.setID Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setid-method/llms.txt): Sets an identifier for the frame. It must be a one-based value. A value of zero indicates that the image, text frame, chart, barcode or drawing has no identifier. Zero can also be used to delete a previously set identifier.
- [Javascript: FrameBase.setInsertionMode Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setinsertionmode-method/llms.txt): Sets a value determining whether the frame is treated as a single character or the document's text either flows around or overwrites the frame. If the document's text flows around or overwrites the frame, this property also determines whether the image, text frame, chart, barcode or drawing is moved with the text or fixed positioned on a page.
- [Javascript: FrameBase.setLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setlocation-method/llms.txt): 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.
- [Javascript: FrameBase.setMoveable Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setmoveable-method/llms.txt): Sets whether a frame can be moved in the document at run time with the built-in mouse interface.
- [Javascript: FrameBase.setName Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setname-method/llms.txt): Sets a name for the frame. An empty string indicates that the frame has no name. An empty string can also be used to delete a previously set name.
- [Javascript: FrameBase.setSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setsize-method/llms.txt): Sets the frame's size in twips. For images this property is read only. To change the size of an image in a document, use the setHorizontalScaling and setVerticalScaling methods.
- [Javascript: FrameBase.setSizeable Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/setsizeable-method/llms.txt): Sets whether the frame can be resized at run time with the built-in mouse interface.
- [Javascript: FrameBase.setTextDistances Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/settextdistances-method/llms.txt): Sets the distances, in twips, between the frame and the document's text. If a value is set to -1, it is not changed.

---

## Nearby

- **Previous:** [Javascript: FormFieldCollection.remove Method](https://docs.textcontrol.com/ds-server/reference/javascript/formfieldcollection/remove-method/llms.txt)
- **Next:** [Javascript: FrameBase.changeZOrder Method](https://docs.textcontrol.com/ds-server/reference/javascript/framebase/changezorder-method/llms.txt)
