QTextTableCellFormat 类提供格式化信息为表格单元格在 QTextDocument . 更多...
头: | #include <QTextTableCellFormat> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
继承: | QTextCharFormat |
注意: 此类的所有函数 可重入 .
QTextTableCellFormat () | |
qreal | bottomBorder () const |
QBrush | bottomBorderBrush () const |
QTextFrameFormat::BorderStyle | bottomBorderStyle () const |
qreal | bottomPadding () const |
bool | isValid () const |
qreal | leftBorder () const |
QBrush | leftBorderBrush () const |
QTextFrameFormat::BorderStyle | leftBorderStyle () const |
qreal | leftPadding () const |
qreal | rightBorder () const |
QBrush | rightBorderBrush () const |
QTextFrameFormat::BorderStyle | rightBorderStyle () const |
qreal | rightPadding () const |
void | setBorder (qreal width ) |
void | setBorderBrush (const QBrush & brush ) |
void | setBorderStyle (QTextFrameFormat::BorderStyle style ) |
void | setBottomBorder (qreal width ) |
void | setBottomBorderBrush (const QBrush & brush ) |
void | setBottomBorderStyle (QTextFrameFormat::BorderStyle style ) |
void | setBottomPadding (qreal padding ) |
void | setLeftBorder (qreal width ) |
void | setLeftBorderBrush (const QBrush & brush ) |
void | setLeftBorderStyle (QTextFrameFormat::BorderStyle style ) |
void | setLeftPadding (qreal padding ) |
void | setPadding (qreal padding ) |
void | setRightBorder (qreal width ) |
void | setRightBorderBrush (const QBrush & brush ) |
void | setRightBorderStyle (QTextFrameFormat::BorderStyle style ) |
void | setRightPadding (qreal padding ) |
void | setTopBorder (qreal width ) |
void | setTopBorderBrush (const QBrush & brush ) |
void | setTopBorderStyle (QTextFrameFormat::BorderStyle style ) |
void | setTopPadding (qreal padding ) |
qreal | topBorder () const |
QBrush | topBorderBrush () const |
QTextFrameFormat::BorderStyle | topBorderStyle () const |
qreal | topPadding () const |
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 .
Constructs a new table cell format object.
Returns the bottom border width of the table cell.
另请参阅 setBottomBorder ().
Returns the bottom border brush of the table cell.
另请参阅 setBottomBorderBrush ().
Returns the bottom border style of the table cell.
另请参阅 setBottomBorderStyle ().
Gets the bottom padding of the table cell.
另请参阅 setBottomPadding (), leftPadding (), rightPadding (),和 topPadding ().
返回
true
if this table cell format is valid; otherwise returns
false
.
Returns the left border width of the table cell.
另请参阅 setLeftBorder ().
Returns the left border brush of the table cell.
另请参阅 setLeftBorderBrush ().
Returns the left border style of the table cell.
另请参阅 setLeftBorderStyle ().
Gets the left padding of the table cell.
另请参阅 setLeftPadding (), rightPadding (), topPadding (),和 bottomPadding ().
Returns the right border width of the table cell.
另请参阅 setRightBorder ().
Returns the right border brush of the table cell.
另请参阅 setRightBorderBrush ().
Returns the right border style of the table cell.
另请参阅 setRightBorderStyle ().
Gets the right padding of the table cell.
另请参阅 setRightPadding (), leftPadding (), topPadding (),和 bottomPadding ().
Sets the left, right, top, and bottom border width of the table cell.
另请参阅 setLeftBorder (), setRightBorder (), setTopBorder (), setBottomBorder (),和 QTextTableFormat::setBorderCollapse .
Sets the left, right, top, and bottom border brush of the table cell.
另请参阅 setLeftBorderBrush (), setRightBorderBrush (), setTopBorderBrush (), setBottomBorderBrush (),和 QTextTableFormat::setBorderCollapse .
Sets the left, right, top, and bottom border style of the table cell.
另请参阅 setLeftBorderStyle (), setRightBorderStyle (), setTopBorderStyle (), setBottomBorderStyle (),和 QTextTableFormat::setBorderCollapse .
Sets the bottom border width of the table cell.
另请参阅 bottomBorder () 和 QTextTableFormat::setBorderCollapse .
Sets the bottom border brush of the table cell.
另请参阅 bottomBorderBrush () 和 QTextTableFormat::setBorderCollapse .
Sets the bottom border style of the table cell.
另请参阅 bottomBorderStyle () 和 QTextTableFormat::setBorderCollapse .
Sets the bottom padding of the table cell.
另请参阅 bottomPadding (), setLeftPadding (), setRightPadding (),和 setTopPadding ().
Sets the left border width of the table cell.
另请参阅 leftBorder () 和 QTextTableFormat::setBorderCollapse .
Sets the left border brush of the table cell.
另请参阅 leftBorderBrush () 和 QTextTableFormat::setBorderCollapse .
Sets the left border style of the table cell.
另请参阅 leftBorderStyle () 和 QTextTableFormat::setBorderCollapse .
Sets the left padding of the table cell.
另请参阅 leftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().
Sets the left, right, top, and bottom padding of the table cell.
另请参阅 setLeftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().
Sets the right border width of the table cell.
另请参阅 rightBorder () 和 QTextTableFormat::setBorderCollapse .
Sets the right border brush of the table cell.
另请参阅 rightBorderBrush () 和 QTextTableFormat::setBorderCollapse .
Sets the right border style of the table cell.
另请参阅 rightBorderStyle () 和 QTextTableFormat::setBorderCollapse .
Sets the right padding of the table cell.
另请参阅 rightPadding (), setLeftPadding (), setTopPadding (),和 setBottomPadding ().
Sets the top border width of the table cell.
另请参阅 topBorder () 和 QTextTableFormat::setBorderCollapse .
Sets the top border brush of the table cell.
另请参阅 topBorderBrush () 和 QTextTableFormat::setBorderCollapse .
Sets the top border style of the table cell.
另请参阅 topBorderStyle () 和 QTextTableFormat::setBorderCollapse .
Sets the top padding of the table cell.
另请参阅 topPadding (), setLeftPadding (), setRightPadding (),和 setBottomPadding ().
Returns the top border width of the table cell.
另请参阅 setTopBorder ().
Returns the top border brush of the table cell.
另请参阅 setTopBorderBrush ().
Returns the top border style of the table cell.
另请参阅 setTopBorderStyle ().
Gets the top padding of the table cell.
另请参阅 setTopPadding (), leftPadding (), rightPadding (),和 bottomPadding ().