<class name="QTextTableCell" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextTableCell.html#QTextTableCell(com.trolltech.qt.gui.QTextTableCell)&quot;&gt;&lt;tt&gt;QTextTableCell&lt;/tt&gt;&lt;/a&gt; class represents the properties of a cell in a &lt;a href=&quot;QTextTable.html&quot;&gt;&lt;tt&gt;QTextTable&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Cells contain information about their location in a table; you can obtain the &lt;a href=&quot;QTextTableCell.html#row()&quot;&gt;&lt;tt&gt;row&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextTableCell.html#column()&quot;&gt;&lt;tt&gt;column&lt;/tt&gt;&lt;/a&gt; numbers of a cell, and its &lt;a href=&quot;QTextTableCell.html#rowSpan()&quot;&gt;&lt;tt&gt;rowSpan&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextTableCell.html#columnSpan()&quot;&gt;&lt;tt&gt;columnSpan&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QTextTableCell.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; of a cell describes the default character format of its contents. The &lt;a href=&quot;QTextTableCell.html#firstCursorPosition()&quot;&gt;&lt;tt&gt;firstCursorPosition&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextTableCell.html#lastCursorPosition()&quot;&gt;&lt;tt&gt;lastCursorPosition&lt;/tt&gt;&lt;/a&gt; functions are used to obtain the extent of the cell in the document.&lt;/p&gt;

@see &lt;a href=&quot;QTextTable.html&quot;&gt;&lt;tt&gt;QTextTable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextTableFormat.html&quot;&gt;&lt;tt&gt;QTextTableFormat&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextTableCell()" doc="/**
&lt;p&gt;Constructs an invalid table cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTextTableCell(com.trolltech.qt.gui.QTextTableCell o)" doc="/**
&lt;p&gt;Copy constructor. Creates a new &lt;a href=&quot;QTextTableCell.html#QTextTableCell(com.trolltech.qt.gui.QTextTableCell)&quot;&gt;&lt;tt&gt;QTextTableCell&lt;/tt&gt;&lt;/a&gt; object based on the &lt;tt&gt;o&lt;/tt&gt; cell.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame_iterator begin()" doc="/**
&lt;p&gt;Returns a frame iterator pointing to the beginning of the table's cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int column()" doc="/**
&lt;p&gt;Returns the number of the column in the table that contains this cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#row()&quot;&gt;&lt;tt&gt;row&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int columnSpan()" doc="/**
&lt;p&gt;Returns the number of columns this cell spans. The default is 1.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#rowSpan()&quot;&gt;&lt;tt&gt;rowSpan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame_iterator end()" doc="/**
&lt;p&gt;Returns a frame iterator pointing to the end of the table's cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#begin()&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor firstCursorPosition()" doc="/**
&lt;p&gt;Returns the first valid cursor position in this cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#lastCursorPosition()&quot;&gt;&lt;tt&gt;lastCursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int firstPosition()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCharFormat format()" doc="/**
&lt;p&gt;Returns the cell's character format.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#setFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if this is a valid table cell; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor lastCursorPosition()" doc="/**
&lt;p&gt;Returns the last valid cursor position in this cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#firstCursorPosition()&quot;&gt;&lt;tt&gt;firstCursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lastPosition()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final int row()" doc="/**
&lt;p&gt;Returns the number of the row in the table that contains this cell.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#column()&quot;&gt;&lt;tt&gt;column&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int rowSpan()" doc="/**
&lt;p&gt;Returns the number of rows this cell spans. The default is 1.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#columnSpan()&quot;&gt;&lt;tt&gt;columnSpan&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFormat(com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;Sets the cell's character format to &lt;tt&gt;format&lt;/tt&gt;. This can for example be used to change the background color of the entire cell:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextTableCell.html#QTextTableCell(com.trolltech.qt.gui.QTextTableCell)&quot;&gt;&lt;tt&gt;QTextTableCell&lt;/tt&gt;&lt;/a&gt; cell = table-&amp;gt;cellAt(2, 3); &lt;a href=&quot;QTextCharFormat.html&quot;&gt;&lt;tt&gt;QTextCharFormat&lt;/tt&gt;&lt;/a&gt; format = cell.&lt;a href=&quot;QTextTableCell.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt;; format.setBackground(Qt::blue); cell.&lt;a href=&quot;QTextTableCell.html#setFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt;(format);&lt;/p&gt;
&lt;p&gt;Note that the cell's row or column span cannot be changed through this function. You have to use QTextTable::mergeCells and QTextTable::splitCell instead.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableCell.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
