QTextTableCellFormat 類

The 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

詳細描述

The 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 ().