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:
- property default: _TMargins
Gets Margin Default. Static Property.
- Return type:
TypeVar
(_TMargins
, bound= Margins)
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: