Class: QgsStyleTextFormatEntity

class qgis.core.QgsStyleTextFormatEntity

Bases: QgsStyleEntityInterface

A text format entity for QgsStyle databases.

New in version 3.10.

QgsStyleTextFormatEntity(format: QgsTextFormat) Constructor for QgsStyleTextFormatEntity, with the specified text format.

QgsStyleTextFormatEntity(QgsStyleTextFormatEntity)

Methods

format

Returns the entity’s text format.

type

rtype

QgsStyle.StyleEntity

format(self) QgsTextFormat

Returns the entity’s text format.

Return type

QgsTextFormat

type(self) QgsStyle.StyleEntity
Return type

QgsStyle.StyleEntity