ooodev.format.inner.modify.calc.background.color module

class ooodev.format.inner.modify.calc.background.color.Color(*, color=-1, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Bases: CellStyleBaseMulti

Cell Style Background Color.

New in version 0.9.0.

__init__(*, color=-1, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Constructor

Parameters:
  • color (Color, optional) – Color such as CommonColor.LIGHT_BLUE.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Return type:

None

classmethod from_style(doc, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Returns:

Color instance from style properties.

Return type:

Color

property prop_inner: Color

Gets/Sets Inner Color instance

Return type:

Color

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str