# Javascript: TableColumn.getPosition Method

> Gets, in twips, the horizontal position of the column.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableColumn.getPosition Method
- **325 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecolumn/getposition-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecolumn/getposition-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tablecolumn/getposition-method/llms-full.txt

---

### Description

Gets, in twips, the horizontal position of the column.

### Syntax

```javascript
<void> TableColumn.getPosition(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives horizontal position of the column. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableColumn.getPosition` in a practical document-editing workflow. Gets, in twips, the horizontal position of the column.

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

function inspectPosition(tableColumn) {
    tableColumn.getPosition(
        function(result) {
            console.log("get position result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableColumn.getColumn Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablecolumn/getcolumn-method/llms-full.txt)
- **Next:** [Javascript: TableColumn.getWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablecolumn/getwidth-method/llms-full.txt)
