ooodev.format.inner.direct.draw.shape.position_size.protect module

class ooodev.format.inner.direct.draw.shape.position_size.protect.Protect(position=None, size=None)[source]

Bases: StyleBase

Shape Protection

New in version 0.17.3.

__init__(position=None, size=None)[source]

Constructor

Parameters:
  • position (bool, optional) – Specifies position protection.

  • size (bool, optional) – Specifies size protection.

Return type:

None

Note

If position is True, size is True too. Setting size to False will be ignored if position is True.

New in version 0.17.3.

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:

Instance that represents shape protection.

Return type:

Protect

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_position: bool | None

Gets/Sets position

Return type:

bool | None

property prop_size: bool | None

Gets/Sets size

Return type:

bool | None