ooodev.format.inner.common.abstract.abstract_fill_color module

Abstract Fill Color Module

class ooodev.format.inner.common.abstract.abstract_fill_color.AbstractColor(color=-1)[source]

Bases: StyleBase

Paragraph Fill Coloring

New in version 0.9.0.

__init__(color=-1)[source]

Constructor

Parameters:

color (Color, optional) – FillColor Color.

Return type:

None

apply(obj: Any)[source]
apply(obj, **kwargs)

Applies padding to obj

Parameters:

obj (object) – UNO object.

Return type:

None

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Gets instance from object

Parameters:

obj (object) – UNO object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Color instance that represents obj Color properties.

Return type:

Color

property default: _TAbstractColor

Gets Color empty.

Return type:

TypeVar(_TAbstractColor, bound= AbstractColor)

property prop_color: Color

Gets/Sets color

Return type:

NewType()(Color, int)