QgsTextFragment & operator[](int index)
Returns the fragment at the specified index.
void clear()
Clears the block, removing all its contents.
const QgsTextFragment & at(int index) const
Returns the fragment at the specified index.
int size() const
Returns the number of fragments in the block.
void append(const QgsTextFragment &fragment)
Appends a fragment to the block.
bool empty() const
Returns true if the block is empty.
QString toPlainText() const
Converts the block to plain text.
QgsTextBlock()=default
Constructor for an empty text block.
Stores a fragment of text along with formatting overrides to be used when rendering the fragment.
void applyCapitalization(Qgis::Capitalization capitalization)
Applies a capitalization style to the block's text.