ooodev.format.calc.direct.cell.background package

Module contents

class ooodev.format.calc.direct.cell.background.Color(color=-1)[source]

Bases: StyleBase

Class for Cell Properties Back Color.

New in version 0.9.0.

__init__(color=-1)[source]

Constructor

Parameters:

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

Return type:

None

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

Applies padding to obj

Parameters:

obj (object) – UNO object that supports com.sun.star.table.CellProperties service.

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:

BackColor instance that represents obj Back Color properties.

Return type:

BackColor

property default: _TColor

Gets BackColor empty.

Return type:

TypeVar(_TColor, bound= Color)

property empty: _TColor

Gets BackColor empty.

Return type:

TypeVar(_TColor, bound= Color)

property prop_color: Color

Gets/Sets color

Return type:

NewType()(Color, int)

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind