QTextTableCellFormat Class Reference

[ QtGui module]

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

继承 QTextCharFormat .

方法


详细描述

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


方法文档编制

QTextTableCellFormat.__init__ ( self )

Constructs a new table cell format object.

该函数在 Qt 4.4 引入。

QTextTableCellFormat.__init__ ( self , QTextTableCellFormat )

float QTextTableCellFormat.bottomPadding ( self )

Gets the bottom padding of the table cell.

该函数在 Qt 4.4 引入。

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

bool QTextTableCellFormat.isValid ( self )

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

该函数在 Qt 4.4 引入。

float QTextTableCellFormat.leftPadding ( self )

Gets the left padding of the table cell.

该函数在 Qt 4.4 引入。

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

float QTextTableCellFormat.rightPadding ( self )

Gets the right padding of the table cell.

该函数在 Qt 4.4 引入。

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

QTextTableCellFormat.setBottomPadding ( self , float  padding )

Sets the bottom padding of the table cell.

该函数在 Qt 4.4 引入。

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

QTextTableCellFormat.setLeftPadding ( self , float  padding )

Sets the left padding of the table cell.

该函数在 Qt 4.4 引入。

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

QTextTableCellFormat.setPadding ( self , float  padding )

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

该函数在 Qt 4.4 引入。

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

QTextTableCellFormat.setRightPadding ( self , float  padding )

Sets the right padding of the table cell.

该函数在 Qt 4.4 引入。

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

QTextTableCellFormat.setTopPadding ( self , float  padding )

Sets the top padding of the table cell.

该函数在 Qt 4.4 引入。

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

float QTextTableCellFormat.topPadding ( self )

Gets the top padding of the table cell.

该函数在 Qt 4.4 引入。

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