|  | Home · Overviews · Examples |

# QTextTableCell Class Reference
[com.trolltech.qt.gui module]

The `QTextTableCell` class represents the properties of a cell in a `QTextTable`. More...

## Detailed Description

The `QTextTableCell` class represents the properties of a cell in a `QTextTable`.

Table cells are pieces of document structure that belong to a table. The table orders cells into particular rows and columns; cells can also span multiple columns and rows.

Cells are usually created when a table is inserted into a document with QTextCursor::insertTable(), but they are also created and destroyed when a table is resized.

Cells contain information about their location in a table; you can obtain the `row` and `column` numbers of a cell, and its `rowSpan` and `columnSpan`.

The `format` of a cell describes the default character format of its contents. The `firstCursorPosition` and `lastCursorPosition` functions are used to obtain the extent of the cell in the document.

See also `QTextTable` and `QTextTableFormat`.