内容表

上一话题

QTextTableCell

下一话题

QTextTableFormat

QTextTableCellFormat

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

Inheritance diagram of PySide2.QtGui.QTextTableCellFormat

详细描述

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

class QTextTableCellFormat

QTextTableCellFormat(fmt)

QTextTableCellFormat(QTextTableCellFormat)

param QTextTableCellFormat

QTextTableCellFormat

param fmt

QTextFormat

Constructs a new table cell format object.

PySide2.QtGui.QTextTableCellFormat. bottomBorder ( )
返回类型

qreal

Returns the bottom border width of the table cell.

另请参阅

setBottomBorder()

PySide2.QtGui.QTextTableCellFormat. bottomBorderBrush ( )
返回类型

QBrush

Returns the bottom border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. bottomBorderStyle ( )
返回类型

BorderStyle

Returns the bottom border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. bottomPadding ( )
返回类型

qreal

Gets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. leftBorder ( )
返回类型

qreal

Returns the left border width of the table cell.

另请参阅

setLeftBorder()

PySide2.QtGui.QTextTableCellFormat. leftBorderBrush ( )
返回类型

QBrush

Returns the left border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. leftBorderStyle ( )
返回类型

BorderStyle

Returns the left border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. leftPadding ( )
返回类型

qreal

Gets the left padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. rightBorder ( )
返回类型

qreal

Returns the right border width of the table cell.

另请参阅

setRightBorder()

PySide2.QtGui.QTextTableCellFormat. rightBorderBrush ( )
返回类型

QBrush

Returns the right border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. rightBorderStyle ( )
返回类型

BorderStyle

Returns the right border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. rightPadding ( )
返回类型

qreal

Gets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. setBorder ( width )
参数

width qreal

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

PySide2.QtGui.QTextTableCellFormat. setBorderBrush ( brush )
参数

brush QBrush

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

PySide2.QtGui.QTextTableCellFormat. setBorderStyle ( style )
参数

style BorderStyle

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

PySide2.QtGui.QTextTableCellFormat. setBottomBorder ( width )
参数

width qreal

Sets the bottom border width of the table cell.

PySide2.QtGui.QTextTableCellFormat. setBottomBorderBrush ( brush )
参数

brush QBrush

Sets the bottom border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. setBottomBorderStyle ( style )
参数

style BorderStyle

Sets the bottom border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. setBottomPadding ( padding )
参数

padding qreal

Sets the bottom padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. setLeftBorder ( width )
参数

width qreal

Sets the left border width of the table cell.

PySide2.QtGui.QTextTableCellFormat. setLeftBorderBrush ( brush )
参数

brush QBrush

Sets the left border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. setLeftBorderStyle ( style )
参数

style BorderStyle

Sets the left border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. setLeftPadding ( padding )
参数

padding qreal

Sets the left padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. setPadding ( padding )
参数

padding qreal

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

PySide2.QtGui.QTextTableCellFormat. setRightBorder ( width )
参数

width qreal

Sets the right border width of the table cell.

PySide2.QtGui.QTextTableCellFormat. setRightBorderBrush ( brush )
参数

brush QBrush

Sets the right border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. setRightBorderStyle ( style )
参数

style BorderStyle

Sets the right border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. setRightPadding ( padding )
参数

padding qreal

Sets the right padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. setTopBorder ( width )
参数

width qreal

Sets the top border width of the table cell.

PySide2.QtGui.QTextTableCellFormat. setTopBorderBrush ( brush )
参数

brush QBrush

Sets the top border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. setTopBorderStyle ( style )
参数

style BorderStyle

Sets the top border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. setTopPadding ( padding )
参数

padding qreal

Sets the top padding of the table cell.

PySide2.QtGui.QTextTableCellFormat. topBorder ( )
返回类型

qreal

Returns the top border width of the table cell.

另请参阅

setTopBorder()

PySide2.QtGui.QTextTableCellFormat. topBorderBrush ( )
返回类型

QBrush

Returns the top border brush of the table cell.

PySide2.QtGui.QTextTableCellFormat. topBorderStyle ( )
返回类型

BorderStyle

Returns the top border style of the table cell.

PySide2.QtGui.QTextTableCellFormat. topPadding ( )
返回类型

qreal

Gets the top padding of the table cell.