# InputPosition Object

> Represents the current text input position of a document.

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

---

### Description

Represents the current text input position of a document.

### Syntax

```javascript
InputPosition
```

### Examples

The following example demonstrates `InputPosition` in a practical document-editing workflow. It represents the current text input position of a document.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.inputPosition.getCaretSize(
    function(size) {
        if (!size) {
            console.warn("No size was returned.");
            return;
        }
        
        console.log("get caret size result:", size);
    },
    onTxError
);
```

---

## In This Section

- [Javascript: InputPosition.getCaretSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getcaretsize-method/llms-full.txt): Gets the size of the caret, in pixels, at the current text input position.
- [Javascript: InputPosition.getColumn Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getcolumn-method/llms-full.txt): Gets the column number of the current text input position.
- [Javascript: InputPosition.getInactiveMarker Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getinactivemarker-method/llms-full.txt): Gets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.
- [Javascript: InputPosition.getLine Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getline-method/llms-full.txt): Gets the line number of the current text input position.
- [Javascript: InputPosition.getLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getlocation-method/llms-full.txt): Gets the geometric location of the current text input position.
- [Javascript: InputPosition.getPage Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getpage-method/llms-full.txt): Gets the page number of the current text input position.
- [Javascript: InputPosition.getPageInSection Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getpageinsection-method/llms-full.txt): Gets the page number in the section containing the current text input position.
- [Javascript: InputPosition.getSection Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getsection-method/llms-full.txt): Gets the section number of the current text input position.
- [Javascript: InputPosition.getTextPosition Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/gettextposition-method/llms-full.txt): Gets the text position of the current text input position.
- [Javascript: InputPosition.ScrollPosition Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/scrollposition-enumeration/llms-full.txt): Determines a position to where the input position is scrolled.
- [Javascript: InputPosition.scrollTo Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/scrollto-method/llms-full.txt): Scrolls the contents of a Text Control so that the current input position becomes visible.
- [Javascript: InputPosition.setInactiveMarker Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/setinactivemarker-method/llms-full.txt): Sets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

---

## Nearby

- **Previous:** [Javascript: InputFormat.setVerticallyCentered Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/setverticallycentered-method/llms-full.txt)
- **Next:** [Javascript: InputPosition.getCaretSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputposition/getcaretsize-method/llms-full.txt)
