ooodev.format.inner.modify.calc.page.header.area.color module

class ooodev.format.inner.modify.calc.page.header.area.color.Color(*, color=-1, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Bases: CellStyleBaseMulti

Page Header Color

New in version 0.9.0.

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

Constructor

Parameters:
  • color (Color, optional) – FillColor Color.

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

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

Return type:

None

classmethod from_style(doc, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Gets instance from Document.

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

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

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

Returns:

Color instance from document properties.

Return type:

Color

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_inner: InnerColor

Gets/Sets Inner Color instance

Return type:

InnerColor

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str

class ooodev.format.inner.modify.calc.page.header.area.color.InnerColor(color=-1)[source]

Bases: AbstractColor

Page header Color.

New in version 0.9.0.

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind