# TableColumn Object

> Represents a single column of a table in a Text Control document.

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

---

### Description

Represents a single column of a table in a Text Control document.

### Syntax

```javascript
TableColumn
```

### Examples

The following example demonstrates `TableColumn` in a practical document-editing workflow. It represents a single column of a table in a Text Control document.

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

function inspectTableColumn(tableColumn) {
    tableColumn.getCellFormat(
        function(format) {
            if (!format) {
                console.warn("No table cell format was returned.");
                return;
            }
            
            console.log("get cell format result:", format);
        },
        onTxError
    );
}
```

---

## In This Section

- [Javascript: TableColumn.getCellFormat Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcellformat-method/llms-full.txt): Gets the formatting attributes of a table column.
- [Javascript: TableColumn.getColumn Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getcolumn-method/llms-full.txt): Gets the number of the table column represented through this table column object.
- [Javascript: TableColumn.getPosition Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getposition-method/llms-full.txt): Gets, in twips, the horizontal position of the column.
- [Javascript: TableColumn.getWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/getwidth-method/llms-full.txt): Gets, in twips, the width of the column.
- [Javascript: TableColumn.select Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/select-method/llms-full.txt): Selects the table column.
- [Javascript: TableColumn.setPosition Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/setposition-method/llms-full.txt): Sets, in twips, the horizontal position of the column.
- [Javascript: TableColumn.setWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecolumn/setwidth-method/llms-full.txt): Sets, in twips, the width of the column.

---

## Nearby

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