# TableCellCollection Object

> Contains all cells of a table.

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

---

### Description

Contains all [cells](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecell/llms-full.txt) of a [table](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/table/llms-full.txt).

### Syntax

```javascript
TableCellCollection
```

### Examples

The following example demonstrates `TableCellCollection` in a practical document-editing workflow. It contains all cells of a table.

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

function inspectTableCellCollection(tableCells) {
    tableCells.getCanRemove(
        function(result) {
            if (result) {
                console.log("get can remove is available.");
            } else {
                console.warn("get can remove is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## In This Section

- [Javascript: TableCellCollection.getCanRemove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellcollection/getcanremove-method/llms-full.txt): Gets a value indicating whether table cells can be removed. Table cells can be removed, if either the current text input position is in a table, or if a part of a table is selected.
- [Javascript: TableCellCollection.getItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellcollection/getitem-method/llms-full.txt): Gets the cell with the specified row and column number.
- [Javascript: TableCellCollection.getItemAtInputPosition Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellcollection/getitematinputposition-method/llms-full.txt): Gets table's cell at the current input position.
- [Javascript: TableCellCollection.remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellcollection/remove-method/llms-full.txt): Removes the table cell at the current text input position or all selected table cells when a text selection exists.

---

## Nearby

- **Previous:** [Javascript: TableCellBorder.setWidth Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellborder/setwidth-method/llms-full.txt)
- **Next:** [Javascript: TableCellCollection.getCanRemove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellcollection/getcanremove-method/llms-full.txt)
