QTextTableCellFormat 类

QTextTableCellFormat class provides formatting information for table cells in a QTextDocument . 更多...

头: #include <QTextTableCellFormat>
qmake: QT += gui
Since: Qt 4.4
继承: QTextCharFormat

注意: 此类的所有函数 可重入 .

公共函数

QTextTableCellFormat ()
qreal bottomPadding () const
bool isValid () const
qreal leftPadding () const
qreal rightPadding () const
void setBottomPadding (qreal padding )
void setLeftPadding (qreal padding )
void setPadding (qreal padding )
void setRightPadding (qreal padding )
void setTopPadding (qreal padding )
qreal topPadding () const

详细描述

QTextTableCellFormat class provides formatting information for table cells in a QTextDocument .

The table cell format of a table cell in a document specifies the visual properties of the table cell.

The padding properties of a table cell are controlled by setLeftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding (). All the paddings can be set at once using setPadding ().

另请参阅 QTextFormat , QTextBlockFormat , QTextTableFormat ,和 QTextCharFormat .

成员函数文档编制

QTextTableCellFormat:: QTextTableCellFormat ()

Constructs a new table cell format object.

该函数在 Qt 4.4 引入。

qreal QTextTableCellFormat:: bottomPadding () const

Gets the bottom padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 setBottomPadding (), leftPadding (), rightPadding (),和 topPadding ().

bool QTextTableCellFormat:: isValid () const

返回 true if this table cell format is valid; otherwise returns false .

该函数在 Qt 4.4 引入。

qreal QTextTableCellFormat:: leftPadding () const

Gets the left padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 setLeftPadding (), rightPadding (), topPadding (),和 bottomPadding ().

qreal QTextTableCellFormat:: rightPadding () const

Gets the right padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 setRightPadding (), leftPadding (), topPadding (),和 bottomPadding ().

void QTextTableCellFormat:: setBottomPadding ( qreal padding )

Sets the bottom padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 bottomPadding (), setLeftPadding (), setRightPadding (),和 setTopPadding ().

void QTextTableCellFormat:: setLeftPadding ( qreal padding )

Sets the left padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 leftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setPadding ( qreal padding )

Sets the left, right, top, and bottom padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 setLeftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setRightPadding ( qreal padding )

Sets the right padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 rightPadding (), setLeftPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setTopPadding ( qreal padding )

Sets the top padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 topPadding (), setLeftPadding (), setRightPadding (),和 setBottomPadding ().

qreal QTextTableCellFormat:: topPadding () const

Gets the top padding of the table cell.

该函数在 Qt 4.4 引入。

另请参阅 setTopPadding (), leftPadding (), rightPadding (),和 bottomPadding ().