ooodev.format.inner.modify.write.page.page.margins module
- class ooodev.format.inner.modify.write.page.page.margins.Margins(*, left=None, right=None, top=None, bottom=None, gutter=None, style_name=WriterStylePageKind.STANDARD, style_family='PageStyles')[source]
Bases:
PageStyleBaseMulti
Page Style Margins
See also
New in version 0.9.0.
- __init__(*, left=None, right=None, top=None, bottom=None, gutter=None, style_name=WriterStylePageKind.STANDARD, style_family='PageStyles')[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.gutter (float, optional) – Gutter Margin Value in
mm
units or Class UnitT.style_name (WriterStylePageKind, str, optional) – Specifies the Page Style that instance applies to. Default is Default Page Style.
style_family (str, optional) – Style family. Default
PageStyles
.
- Return type:
None
See also
- classmethod from_style(doc, style_name=WriterStylePageKind.STANDARD, style_family='PageStyles')[source]
Gets instance from Document.
- Parameters:
doc (Any) – UNO Document Object.
style_name (WriterStylePageKind, str, optional) – Specifies the Paragraph Style that instance applies to. Default is Default Paragraph Style.
style_family (str, optional) – Style family. Default
PageStyles
.
- Returns:
Margins
instance from document properties.- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str