ooodev.format.draw.modify.area.color module

Module for Draw Style Fill Coloring.

class ooodev.format.draw.modify.area.color.Color(*, color=-1, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Bases: FillStyleBaseMulti

Draw Style Fill Coloring

New in version 0.17.9.

__init__(*, color=-1, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Constructor

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

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

  • style_family (str, DrawStyleFamilyKind, optional) – Family Style. Defaults to graphics.

Return type:

None

classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Gets instance from Document.

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

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

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

Returns:

Color instance from document properties.

Return type:

Color

property prop_inner: Color

Gets Inner Color instance

Return type:

Color

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str