Qyoto  4.0.6
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QTextTableCell Class Reference

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

Inheritance diagram for QtGui.QTextTableCell:
Collaboration diagram for QtGui.QTextTableCell:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QTextTableCell ()
 
 
 QTextTableCell (QTextTableCell o)
 
 
virtual void CreateProxy ()
 
new QTextFrame.iterator Begin ()
 
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QTextTableCell one, QTextTableCell other)
 
 
static bool operator== (QTextTableCell one, QTextTableCell other)
 
 

Protected Member Functions

 QTextTableCell (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

QTextCharFormat Format [get, set]
 
 
int Column [get]
 
 
int ColumnSpan [get]
 
 
QTextFrame.iterator End [get]
 
 
QTextCursor FirstCursorPosition [get]
 
 
int FirstPosition [get]
 
bool IsValid [get]
 
 
QTextCursor LastCursorPosition [get]
 
 
int LastPosition [get]
 
int Row [get]
 
 
int RowSpan [get]
 
 
int TableCellFormatIndex [get]
 
 
virtual System.IntPtr SmokeObject [get, set]
 

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.

Constructor & Destructor Documentation

QtGui.QTextTableCell.QTextTableCell ( System.Type  dummy)
protected
QtGui.QTextTableCell.QTextTableCell ( )

Constructs an invalid table cell.

See also isValid().

QtGui.QTextTableCell.QTextTableCell ( QTextTableCell  o)

Copy constructor. Creates a new QTextTableCell object based on the other cell.

Member Function Documentation

new QTextFrame.iterator QtGui.QTextTableCell.Begin ( )

Returns a frame iterator pointing to the beginning of the table's cell.

See also end().

virtual void QtGui.QTextTableCell.CreateProxy ( )
virtual
new void QtGui.QTextTableCell.Dispose ( )
override bool QtGui.QTextTableCell.Equals ( object  o)
override int QtGui.QTextTableCell.GetHashCode ( )
static bool QtGui.QTextTableCell.operator!= ( QTextTableCell  one,
QTextTableCell  other 
)
static

Returns true if this cell object and the other cell object describe different cells; otherwise returns false.

static bool QtGui.QTextTableCell.operator== ( QTextTableCell  one,
QTextTableCell  other 
)
static

Returns true if this cell object and the other cell object describe the same cell; otherwise returns false.

Member Data Documentation

SmokeInvocation QtGui.QTextTableCell.interceptor
protected

Property Documentation

int QtGui.QTextTableCell.Column
get

Returns the number of the column in the table that contains this cell.

See also row().

int QtGui.QTextTableCell.ColumnSpan
get

Returns the number of columns this cell spans. The default is 1.

See also rowSpan().

QTextFrame.iterator QtGui.QTextTableCell.End
get

Returns a frame iterator pointing to the end of the table's cell.

See also begin().

QTextCursor QtGui.QTextTableCell.FirstCursorPosition
get

Returns the first valid cursor position in this cell.

See also lastCursorPosition().

int QtGui.QTextTableCell.FirstPosition
get
QTextCharFormat QtGui.QTextTableCell.Format
getset

Returns the cell's character format.

Sets the cell's character format to format. This can for example be used to change the background color of the entire cell:

QTextTableCell cell = table->cellAt(2, 3); QTextCharFormat format = cell.format(); format.setBackground(Qt::blue); cell.setFormat(format);

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.

This function was introduced in Qt 4.2.

bool QtGui.QTextTableCell.IsValid
get

Returns true if this is a valid table cell; otherwise returns false.

QTextCursor QtGui.QTextTableCell.LastCursorPosition
get

Returns the last valid cursor position in this cell.

See also firstCursorPosition().

int QtGui.QTextTableCell.LastPosition
get
int QtGui.QTextTableCell.Row
get

Returns the number of the row in the table that contains this cell.

See also column().

int QtGui.QTextTableCell.RowSpan
get

Returns the number of rows this cell spans. The default is 1.

See also columnSpan().

virtual System.IntPtr QtGui.QTextTableCell.SmokeObject
getset
int QtGui.QTextTableCell.TableCellFormatIndex
get

Returns the index of the tableCell's format in the document's internal list of formats.

This function was introduced in Qt 4.5.

See also QTextDocument::allFormats().