QTextTableCellFormat 類

QTextTableCellFormat 類提供格式化信息為錶格單元格在 QTextDocument . 更多...

頭: #include <QTextTableCellFormat>
qmake: QT += gui
Since: Qt 4.4
繼承: QTextCharFormat

該類在 Qt 4.4 引入。

注意: 此類的所有函數 可重入 .

公共函數

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 .

成員函數文檔編製

QTextTableCellFormat:: QTextTableCellFormat ()

Constructs a new table cell format object.

該函數在 Qt 4.4 引入。

qreal QTextTableCellFormat:: bottomBorder () const

Returns the bottom border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setBottomBorder ().

QBrush QTextTableCellFormat:: bottomBorderBrush () const

Returns the bottom border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setBottomBorderBrush ().

QTextFrameFormat::BorderStyle QTextTableCellFormat:: bottomBorderStyle () const

Returns the bottom border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setBottomBorderStyle ().

qreal QTextTableCellFormat:: bottomPadding () const

Gets the bottom padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 setBottomPadding (), leftPadding (), rightPadding (),和 topPadding ().

bool QTextTableCellFormat:: isValid () const

返迴 true if this table cell format is valid; otherwise returns false .

該函數在 Qt 4.4 引入。

qreal QTextTableCellFormat:: leftBorder () const

Returns the left border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setLeftBorder ().

QBrush QTextTableCellFormat:: leftBorderBrush () const

Returns the left border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setLeftBorderBrush ().

QTextFrameFormat::BorderStyle QTextTableCellFormat:: leftBorderStyle () const

Returns the left border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setLeftBorderStyle ().

qreal QTextTableCellFormat:: leftPadding () const

Gets the left padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 setLeftPadding (), rightPadding (), topPadding (),和 bottomPadding ().

qreal QTextTableCellFormat:: rightBorder () const

Returns the right border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setRightBorder ().

QBrush QTextTableCellFormat:: rightBorderBrush () const

Returns the right border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setRightBorderBrush ().

QTextFrameFormat::BorderStyle QTextTableCellFormat:: rightBorderStyle () const

Returns the right border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setRightBorderStyle ().

qreal QTextTableCellFormat:: rightPadding () const

Gets the right padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 setRightPadding (), leftPadding (), topPadding (),和 bottomPadding ().

void QTextTableCellFormat:: setBorder ( qreal width )

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

該函數在 Qt 5.14 引入。

另請參閱 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.

該函數在 Qt 5.14 引入。

另請參閱 setLeftBorderBrush (), setRightBorderBrush (), setTopBorderBrush (), setBottomBorderBrush (),和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setBorderStyle ( QTextFrameFormat::BorderStyle style )

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

該函數在 Qt 5.14 引入。

另請參閱 setLeftBorderStyle (), setRightBorderStyle (), setTopBorderStyle (), setBottomBorderStyle (),和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setBottomBorder ( qreal width )

Sets the bottom border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 bottomBorder () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setBottomBorderBrush (const QBrush & brush )

Sets the bottom border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 bottomBorderBrush () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setBottomBorderStyle ( QTextFrameFormat::BorderStyle style )

Sets the bottom border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 bottomBorderStyle () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setBottomPadding ( qreal padding )

Sets the bottom padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 bottomPadding (), setLeftPadding (), setRightPadding (),和 setTopPadding ().

void QTextTableCellFormat:: setLeftBorder ( qreal width )

Sets the left border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 leftBorder () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setLeftBorderBrush (const QBrush & brush )

Sets the left border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 leftBorderBrush () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setLeftBorderStyle ( QTextFrameFormat::BorderStyle style )

Sets the left border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 leftBorderStyle () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setLeftPadding ( qreal padding )

Sets the left padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 leftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setPadding ( qreal padding )

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

該函數在 Qt 4.4 引入。

另請參閱 setLeftPadding (), setRightPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setRightBorder ( qreal width )

Sets the right border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 rightBorder () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setRightBorderBrush (const QBrush & brush )

Sets the right border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 rightBorderBrush () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setRightBorderStyle ( QTextFrameFormat::BorderStyle style )

Sets the right border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 rightBorderStyle () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setRightPadding ( qreal padding )

Sets the right padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 rightPadding (), setLeftPadding (), setTopPadding (),和 setBottomPadding ().

void QTextTableCellFormat:: setTopBorder ( qreal width )

Sets the top border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 topBorder () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setTopBorderBrush (const QBrush & brush )

Sets the top border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 topBorderBrush () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setTopBorderStyle ( QTextFrameFormat::BorderStyle style )

Sets the top border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 topBorderStyle () 和 QTextTableFormat::setBorderCollapse .

void QTextTableCellFormat:: setTopPadding ( qreal padding )

Sets the top padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 topPadding (), setLeftPadding (), setRightPadding (),和 setBottomPadding ().

qreal QTextTableCellFormat:: topBorder () const

Returns the top border width of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setTopBorder ().

QBrush QTextTableCellFormat:: topBorderBrush () const

Returns the top border brush of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setTopBorderBrush ().

QTextFrameFormat::BorderStyle QTextTableCellFormat:: topBorderStyle () const

Returns the top border style of the table cell.

該函數在 Qt 5.14 引入。

另請參閱 setTopBorderStyle ().

qreal QTextTableCellFormat:: topPadding () const

Gets the top padding of the table cell.

該函數在 Qt 4.4 引入。

另請參閱 setTopPadding (), leftPadding (), rightPadding (),和 bottomPadding ().