Class: QgsLayoutTableStyle

class qgis.core.QgsLayoutTableStyle

Bases: sip.wrapper

Styling option for a layout table cell

New in version 3.0.

QgsLayoutTableStyle() Constructor for QgsLayoutTableStyle

QgsLayoutTableStyle(QgsLayoutTableStyle)

Methods

readXml

Reads the style's properties from XML.

writeXml

Writes the style's properties to XML for storage.

Attributes

cellBackgroundColor
enabled
readXml(self, styleElem: QDomElement) bool

Reads the style’s properties from XML.

Parameters:

styleElem (QDomElement) – a QDomElement holding the style’s desired properties.

See also

writeXml()

Return type:

bool

writeXml(self, styleElem: QDomElement, doc: QDomDocument) bool

Writes the style’s properties to XML for storage.

Parameters:
  • styleElem (QDomElement) – an existing QDomElement in which to store the style’s properties.

  • doc (QDomDocument) – QDomDocument for the destination XML.

See also

readXml()

Return type:

bool