ooodev.format.inner.direct.write.frame.options.protect module

class ooodev.format.inner.direct.write.frame.options.protect.Protect(size=None, position=None, content=None)[source]

Bases: StyleBase

Frame Protections

New in version 0.9.0.

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

Constructor

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

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

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

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:

Instance that represents Frame Protection.

Return type:

Protect

property prop_content: bool | None

Gets/Sets content

Return type:

bool | None

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