QTextTableCellFormat Class
The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. 更多...
头文件: | #include <QTextTableCellFormat> |
qmake: | QT += gui |
开始支持版本: | Qt 4.4 |
基类: | QTextCharFormat |
Note: All functions in this class are reentrant.
公有函数
QTextTableCellFormat() | |
qreal | bottomPadding() const |
bool | isValid() const |
qreal | leftPadding() const |
qreal | rightPadding() const |
void | setBottomPadding(qreal padding) |
void | setLeftPadding(qreal padding) |
void | setPadding(qreal padding) |
void | setRightPadding(qreal padding) |
void | setTopPadding(qreal padding) |
qreal | topPadding() const |
- 54 个公有函数继承自 QTextCharFormat
- 51 个公有函数继承自 QTextFormat
详细描述
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(), and setBottomPadding(). All the paddings can be set at once using setPadding().
参见 QTextFormat, QTextBlockFormat, QTextTableFormat, and QTextCharFormat.
成员函数
QTextTableCellFormat::QTextTableCellFormat()
Constructs a new table cell format object.
This function was introduced in Qt 4.4.
qreal QTextTableCellFormat::bottomPadding() const
Gets the bottom padding of the table cell.
This function was introduced in Qt 4.4.
参见 setBottomPadding(), leftPadding(), rightPadding(), and topPadding().
bool QTextTableCellFormat::isValid() const
Returns true
if this table cell format is valid; otherwise returns false
.
This function was introduced in Qt 4.4.
qreal QTextTableCellFormat::leftPadding() const
Gets the left padding of the table cell.
This function was introduced in Qt 4.4.
参见 setLeftPadding(), rightPadding(), topPadding(), and bottomPadding().
qreal QTextTableCellFormat::rightPadding() const
Gets the right padding of the table cell.
This function was introduced in Qt 4.4.
参见 setRightPadding(), leftPadding(), topPadding(), and bottomPadding().
void QTextTableCellFormat::setBottomPadding(qreal padding)
Sets the bottom padding of the table cell.
This function was introduced in Qt 4.4.
参见 bottomPadding(), setLeftPadding(), setRightPadding(), and setTopPadding().
void QTextTableCellFormat::setLeftPadding(qreal padding)
Sets the left padding of the table cell.
This function was introduced in Qt 4.4.
参见 leftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setPadding(qreal padding)
Sets the left, right, top, and bottom padding of the table cell.
This function was introduced in Qt 4.4.
参见 setLeftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setRightPadding(qreal padding)
Sets the right padding of the table cell.
This function was introduced in Qt 4.4.
参见 rightPadding(), setLeftPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setTopPadding(qreal padding)
Sets the top padding of the table cell.
This function was introduced in Qt 4.4.
参见 topPadding(), setLeftPadding(), setRightPadding(), and setBottomPadding().
qreal QTextTableCellFormat::topPadding() const
Gets the top padding of the table cell.
This function was introduced in Qt 4.4.
参见 setTopPadding(), leftPadding(), rightPadding(), and bottomPadding().