QTextTableCellFormat Class▲
-
Header: QTextTableCellFormat
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
-
qmake: QT += gui
-
Inherits: QTextCharFormat
-
Group: QTextTableCellFormat is part of Rich Text Processing APIs, shared
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().
See Also▲
See also QTextFormat, QTextBlockFormat, QTextTableFormat, QTextCharFormat
Member Function Documentation▲
QTextTableCellFormat::QTextTableCellFormat()▲
Constructs a new table cell format object.
qreal QTextTableCellFormat::bottomBorder() const▲
QBrush QTextTableCellFormat::bottomBorderBrush() const▲
QTextFrameFormat::BorderStyle QTextTableCellFormat::bottomBorderStyle() const▲
qreal QTextTableCellFormat::bottomPadding() const▲
Gets the bottom padding of the table cell.
See Also▲
See also setBottomPadding(), leftPadding(), rightPadding(), topPadding()
bool QTextTableCellFormat::isValid() const▲
Returns true if this table cell format is valid; otherwise returns false.
qreal QTextTableCellFormat::leftBorder() const▲
QBrush QTextTableCellFormat::leftBorderBrush() const▲
QTextFrameFormat::BorderStyle QTextTableCellFormat::leftBorderStyle() const▲
qreal QTextTableCellFormat::leftPadding() const▲
Gets the left padding of the table cell.
See Also▲
See also setLeftPadding(), rightPadding(), topPadding(), bottomPadding()
qreal QTextTableCellFormat::rightBorder() const▲
QBrush QTextTableCellFormat::rightBorderBrush() const▲
QTextFrameFormat::BorderStyle QTextTableCellFormat::rightBorderStyle() const▲
qreal QTextTableCellFormat::rightPadding() const▲
Gets the right padding of the table cell.
See Also▲
See also setRightPadding(), leftPadding(), topPadding(), bottomPadding()
void QTextTableCellFormat::setBorder(qreal width)▲
Sets the left, right, top, and bottom border width of the table cell.
See Also▲
See also setLeftBorder(), setRightBorder(), setTopBorder(), setBottomBorder(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setBorderBrush(const QBrush &brush)▲
Sets the left, right, top, and bottom border brush of the table cell.
See Also▲
void QTextTableCellFormat::setBorderStyle(QTextFrameFormat::BorderStyle style)▲
Sets the left, right, top, and bottom border style of the table cell.
See Also▲
void QTextTableCellFormat::setBottomBorder(qreal width)▲
Sets the bottom border width of the table cell.
See Also▲
See also bottomBorder(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setBottomBorderBrush(const QBrush &brush)▲
Sets the bottom border brush of the table cell.
See Also▲
See also bottomBorderBrush(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setBottomBorderStyle(QTextFrameFormat::BorderStyle style)▲
Sets the bottom border style of the table cell.
See Also▲
See also bottomBorderStyle(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setBottomPadding(qreal padding)▲
Sets the bottom padding of the table cell.
See Also▲
See also bottomPadding(), setLeftPadding(), setRightPadding(), setTopPadding()
void QTextTableCellFormat::setLeftBorder(qreal width)▲
Sets the left border width of the table cell.
See Also▲
See also leftBorder(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setLeftBorderBrush(const QBrush &brush)▲
Sets the left border brush of the table cell.
See Also▲
See also leftBorderBrush(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setLeftBorderStyle(QTextFrameFormat::BorderStyle style)▲
Sets the left border style of the table cell.
See Also▲
See also leftBorderStyle(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setLeftPadding(qreal padding)▲
Sets the left padding of the table cell.
See Also▲
See also leftPadding(), setRightPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setPadding(qreal padding)▲
Sets the left, right, top, and bottom padding of the table cell.
See Also▲
See also setLeftPadding(), setRightPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setRightBorder(qreal width)▲
Sets the right border width of the table cell.
See Also▲
See also rightBorder(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setRightBorderBrush(const QBrush &brush)▲
Sets the right border brush of the table cell.
See Also▲
See also rightBorderBrush(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setRightBorderStyle(QTextFrameFormat::BorderStyle style)▲
Sets the right border style of the table cell.
See Also▲
See also rightBorderStyle(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setRightPadding(qreal padding)▲
Sets the right padding of the table cell.
See Also▲
See also rightPadding(), setLeftPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setTopBorder(qreal width)▲
Sets the top border width of the table cell.
See Also▲
See also topBorder(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setTopBorderBrush(const QBrush &brush)▲
Sets the top border brush of the table cell.
See Also▲
See also topBorderBrush(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setTopBorderStyle(QTextFrameFormat::BorderStyle style)▲
Sets the top border style of the table cell.
See Also▲
See also topBorderStyle(), QTextTableFormat::setBorderCollapse
void QTextTableCellFormat::setTopPadding(qreal padding)▲
Sets the top padding of the table cell.
See Also▲
See also topPadding(), setLeftPadding(), setRightPadding(), setBottomPadding()
qreal QTextTableCellFormat::topBorder() const▲
QBrush QTextTableCellFormat::topBorderBrush() const▲
QTextFrameFormat::BorderStyle QTextTableCellFormat::topBorderStyle() const▲
qreal QTextTableCellFormat::topPadding() const▲
Gets the top padding of the table cell.
See Also▲
See also setTopPadding(), leftPadding(), rightPadding(), bottomPadding()