# Javascript: TableColumn.getColumn Method

> Gets the number of the table column represented through this table column object.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableColumn.getColumn Method
- **341 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcolumn-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcolumn-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcolumn-method/llms-full.txt

---

### Description

Gets the number of the table column represented through this table column object.

### Syntax

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

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the number of the table column represented through this table column object. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableColumn.getColumn` in a practical document-editing workflow. It gets the number of the table column represented through this table column object.

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

function inspectColumn(tableColumn) {
    tableColumn.getColumn(
        function(result) {
            console.log("get column result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableColumn.getCellFormat Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcellformat-method/llms-full.txt)
- **Next:** [Javascript: TableColumn.getPosition Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getposition-method/llms-full.txt)
