class QTextTableCellFormat#

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

Inheritance diagram of PySide6.QtGui.QTextTableCellFormat

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

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() , and setBottomPadding() . All the paddings can be set at once using setPadding() .

__init__(fmt)#
Parameters:

fmtQTextFormat

__init__()

Constructs a new table cell format object.

bottomBorder()#
Return type:

float

Returns the bottom border width of the table cell.

bottomBorderBrush()#
Return type:

QBrush

Returns the bottom border brush of the table cell.

bottomBorderStyle()#
Return type:

BorderStyle

Returns the bottom border style of the table cell.

bottomPadding()#
Return type:

float

Gets the bottom padding of the table cell.

leftBorder()#
Return type:

float

Returns the left border width of the table cell.

See also

setLeftBorder()

leftBorderBrush()#
Return type:

QBrush

Returns the left border brush of the table cell.

leftBorderStyle()#
Return type:

BorderStyle

Returns the left border style of the table cell.

leftPadding()#
Return type:

float

Gets the left padding of the table cell.

rightBorder()#
Return type:

float

Returns the right border width of the table cell.

See also

setRightBorder()

rightBorderBrush()#
Return type:

QBrush

Returns the right border brush of the table cell.

rightBorderStyle()#
Return type:

BorderStyle

Returns the right border style of the table cell.

rightPadding()#
Return type:

float

Gets the right padding of the table cell.

setBorder(width)#
Parameters:

width – float

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

setBorderBrush(brush)#
Parameters:

brushQBrush

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

setBorderStyle(style)#
Parameters:

styleBorderStyle

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

setBottomBorder(width)#
Parameters:

width – float

Sets the bottom border width of the table cell.

setBottomBorderBrush(brush)#
Parameters:

brushQBrush

Sets the bottom border brush of the table cell.

setBottomBorderStyle(style)#
Parameters:

styleBorderStyle

Sets the bottom border style of the table cell.

setBottomPadding(padding)#
Parameters:

padding – float

Sets the bottom padding of the table cell.

setLeftBorder(width)#
Parameters:

width – float

Sets the left border width of the table cell.

setLeftBorderBrush(brush)#
Parameters:

brushQBrush

Sets the left border brush of the table cell.

setLeftBorderStyle(style)#
Parameters:

styleBorderStyle

Sets the left border style of the table cell.

setLeftPadding(padding)#
Parameters:

padding – float

Sets the left padding of the table cell.

setPadding(padding)#
Parameters:

padding – float

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

setRightBorder(width)#
Parameters:

width – float

Sets the right border width of the table cell.

setRightBorderBrush(brush)#
Parameters:

brushQBrush

Sets the right border brush of the table cell.

setRightBorderStyle(style)#
Parameters:

styleBorderStyle

Sets the right border style of the table cell.

setRightPadding(padding)#
Parameters:

padding – float

Sets the right padding of the table cell.

setTopBorder(width)#
Parameters:

width – float

Sets the top border width of the table cell.

setTopBorderBrush(brush)#
Parameters:

brushQBrush

Sets the top border brush of the table cell.

setTopBorderStyle(style)#
Parameters:

styleBorderStyle

Sets the top border style of the table cell.

setTopPadding(padding)#
Parameters:

padding – float

Sets the top padding of the table cell.

topBorder()#
Return type:

float

Returns the top border width of the table cell.

See also

setTopBorder()

topBorderBrush()#
Return type:

QBrush

Returns the top border brush of the table cell.

topBorderStyle()#
Return type:

BorderStyle

Returns the top border style of the table cell.

topPadding()#
Return type:

float

Gets the top padding of the table cell.