# Tables

> Insert, delete, split and merge tables, rows, columns and cells in TXTextControl and set cell text, data, formulas and number formats with TableCellText.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Tables
- **2288 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/tables/llms-full.txt

---

Each table in a `TXTextControl` document has a table identifier. The members below insert, delete, split and merge tables, rows, columns and cells, read and set cell text, data, formulas and number formats, and tell you where the input position is.

Formulas in table cells use the functions listed under [Supported Formula Functions](https://docs.textcontrol.com/tx-text-control-activex/reference/formula-functions/llms-full.txt).

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.FormulaReferenceStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formulareferencestyle-property/llms-full.txt) | Gets or sets a value determining how references to table cells in formulas are specified. |
| [`TXTextControl.IsFormulaCalculationEnabled`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/isformulacalculationenabled-property/llms-full.txt) | Gets or sets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed. |
| [`TXTextControl.TableAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableatinputpos-property/llms-full.txt) | Returns the table identifier of the table containing the input position. |
| [`TXTextControl.TableCanChangeAttr`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecanchangeattr-property/llms-full.txt) | This property provides information about whether the attributes of all the selected table cells can be altered. |
| [`TXTextControl.TableCanDeleteColumn`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecandeletecolumn-property/llms-full.txt) | This property provides information about whether table columns can be deleted. |
| [`TXTextControl.TableCanDeleteLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecandeletelines-property/llms-full.txt) | This property provides information about whether table lines can be deleted. |
| [`TXTextControl.TableCanInsert`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsert-property/llms-full.txt) | This property provides information about whether a table can be inserted. |
| [`TXTextControl.TableCanInsertColumn`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertcolumn-property/llms-full.txt) | This property provides information about whether a table column can be inserted. |
| [`TXTextControl.TableCanInsertLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecaninsertlines-property/llms-full.txt) | This property provides information about whether table lines can be inserted. |
| [`TXTextControl.TableCanMergeCells`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecanmergecells-property/llms-full.txt) | This property provides information about whether table cells can be merged. |
| [`TXTextControl.TableCanSplit`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecansplit-property/llms-full.txt) | Checks whether a table can be split. |
| [`TXTextControl.TableCanSplitCells`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecansplitcells-property/llms-full.txt) | This property provides information about whether table cells can be split. |
| [`TXTextControl.TableCellAttribute`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecellattribute-property/llms-full.txt) | Returns or sets attributes of a table cell. |
| [`TXTextControl.TableCellData`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecelldata-property/llms-full.txt) | Returns or sets a string associated with the specified table cell. |
| [`TXTextControl.TableCellFormula`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecellformula-property/llms-full.txt) | Returns or sets the table cell's formula. |
| [`TXTextControl.TableCellLength`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecelllength-property/llms-full.txt) | Returns the number of characters in a table cell. |
| [`TXTextControl.TableCellNumberFormat`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecellnumberformat-property/llms-full.txt) | Returns or sets a number format for the table cell. |
| [`TXTextControl.TableCellStart`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecellstart-property/llms-full.txt) | Returns the character index (one-based) of the first character in a table cell. |
| [`TXTextControl.TableCellText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecelltext-property/llms-full.txt) | Returns or sets the text of a table cell. |
| [`TXTextControl.TableCellTextType`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecelltexttype-property/llms-full.txt) | Returns or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text. |
| [`TXTextControl.TableColAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecolatinputpos-property/llms-full.txt) | Returns the number of the current input column in a table. |
| [`TXTextControl.TableColumns`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecolumns-property/llms-full.txt) | Informs about the number of columns a specified table contains. |
| [`TXTextControl.TableDescriptiveText`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledescriptivetext-property/llms-full.txt) | Defines a descriptive text for a table. |
| [`TXTextControl.TableGridLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablegridlines-property/llms-full.txt) | This property determines whether or not grid lines in tables are visible. |
| [`TXTextControl.TableNestedLevel`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablenestedlevel-property/llms-full.txt) | Gets the nested level for the specified table. |
| [`TXTextControl.TableRowAtInputPos`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablerowatinputpos-property/llms-full.txt) | Returns the number of the current input row in a table. |
| [`TXTextControl.TableRows`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablerows-property/llms-full.txt) | Informs about the number of rows a specified table contains. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.TableAttrDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableattrdialog-method/llms-full.txt) | This method invokes the built-in dialog box for setting table attributes and, after the user has closed the dialog box, specifies whether the user has changed something. |
| [`TXTextControl.TableCellSelect`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecellselect-method/llms-full.txt) | This method can be used to select a table cell, a table row, a table column or a complete table. |
| [`TXTextControl.TableDelete`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledelete-method/llms-full.txt) | This method can be used to delete a complete table from the document. |
| [`TXTextControl.TableDeleteColumn`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeletecolumn-method/llms-full.txt) | This method deletes the currently selected table columns or the table column containing the text input position. |
| [`TXTextControl.TableDeleteLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeletelines-method/llms-full.txt) | This method deletes the currently selected table lines or the table line at the current input position. |
| [`TXTextControl.TableFromSelection`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablefromselection-method/llms-full.txt) | This method returns the table identifier of the currently selected table. |
| [`TXTextControl.TableGetOuter`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablegetouter-method/llms-full.txt) | This method returns a table's outer table. |
| [`TXTextControl.TableGetOuterMost`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablegetoutermost-method/llms-full.txt) | This method returns a table's outermost table. |
| [`TXTextControl.TableInsert`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsert-method/llms-full.txt) | This method inserts a new table in the text. |
| [`TXTextControl.TableInsertColumn`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertcolumn-method/llms-full.txt) | This method inserts a table column left or right of the column with the current input position. |
| [`TXTextControl.TableInsertDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertdialog-method/llms-full.txt) | This method opens a built-in dialog box which offers options to define a new table. |
| [`TXTextControl.TableInsertLines`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableinsertlines-method/llms-full.txt) | This member function inserts table lines above or below the table line with the current input position. |
| [`TXTextControl.TableMergeCells`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablemergecells-method/llms-full.txt) | This method merges all selected table cells. |
| [`TXTextControl.TableNext`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablenext-method/llms-full.txt) | This method returns an enumeration number of the table that follows the specified table in the `TXTextControl`'s current text. |
| [`TXTextControl.TableSelectCells`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableselectcells-method/llms-full.txt) | This method can be used to select a rectangular part of a table defined through two table cells. |
| [`TXTextControl.TableSplit`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablesplit-method/llms-full.txt) | Splits a table below or above the current input position. |
| [`TXTextControl.TableSplitCells`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablesplitcells-method/llms-full.txt) | This method splits all selected table cells. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.TableCreated`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tablecreated-event/llms-full.txt) | Occurs after a new table has been created as a result of a text insertion via the clipboard. |
| [`TXTextControl.TableDeleted`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabledeleted-event/llms-full.txt) | Occurs after a table has been deleted. |
| [`TXTextControl.TableFormatChanged`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tableformatchanged-event/llms-full.txt) | Occurs after a table has been formatted with the built-in mouse-interface. |

### Related Pages

- [Tables](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/llms-full.txt): create and edit tables in code.
- [Using Formulas in Table Cells](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/formulas/llms-full.txt): calculate cell text with formulas.
- [Number Formats](https://docs.textcontrol.com/tx-text-control-activex/document-editor/tables/number-formats/llms-full.txt): format the result of cell formulas.
- [Supported Formula Functions](https://docs.textcontrol.com/tx-text-control-activex/reference/formula-functions/llms-full.txt): the functions table cell formulas can use.
- [Additional Mouse and Keyboard Assignment in Tables](https://docs.textcontrol.com/tx-text-control-activex/reference/assignments/tables/llms-full.txt): the extra mouse actions and keys in tables.

---

## Nearby

- **Previous:** [Built-In Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/dialog-boxes/llms-full.txt)
- **Next:** [Zooming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/zooming/llms-full.txt)
