ooodev.format.inner.direct.calc.page.page.margins module

class ooodev.format.inner.direct.calc.page.page.margins.Margins(*, left=None, right=None, top=None, bottom=None)[source]

Bases: StyleBase

Page Margins.

New in version 0.9.0.

__init__(*, left=None, right=None, top=None, bottom=None)[source]

Constructor

Parameters:
  • left (float, optional) – Left Margin Value in mm units or Class UnitT.

  • right (float, optional) – Right Margin Value in mm units or Class UnitT.

  • top (float, optional) – Top Margin Value in mm units or Class UnitT.

  • bottom (float, optional) – Bottom Margin Value in mm units or Class UnitT.

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.

Returns:

Instance that represents object margins.

Return type:

Margins

property default: _TMargins

Gets Margin Default. Static Property.

Return type:

TypeVar(_TMargins, bound= Margins)

property prop_bottom: UnitMM | None

Gets/Sets Bottom value

Return type:

UnitMM | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_left: UnitMM | None

Gets/Sets Left value

Return type:

UnitMM | None

property prop_right: UnitMM | None

Gets/Sets Right value

Return type:

UnitMM | None

property prop_top: UnitMM | None

Gets/Sets Top value

Return type:

UnitMM | None