ooodev.format.inner.direct.calc.border.padding module
Module for managing paragraph padding.
New in version 0.9.0.
- class ooodev.format.inner.direct.calc.border.padding.Padding(*, left=None, right=None, top=None, bottom=None, all=None)[source]
Bases:
AbstractPaddingParagraph Padding
Any properties starting with
prop_set or get current instance values.All methods starting with
fmt_can be used to chain together properties.New in version 0.9.0.
- __init__(*, left=None, right=None, top=None, bottom=None, all=None)[source]
Constructor
- Parameters:
left (float, UnitT, optional) – Left (in
mmunits) or Class UnitT.right (float, UnitT, optional) – Right (in
mmunits) or Class UnitT.top (float, UnitT, optional) – Top (in
mmunits) or Class UnitT.bottom (float, UnitT, optional) – Bottom (in
mmunits) or Class UnitT.all (float, UnitT, optional) – Left, right, top, bottom (in
mmunits) or Class UnitT. If argument is present thenleft,right,top, andbottomarguments are ignored.
- Raises:
ValueError – If any argument value is less than zero.
- Return type:
None
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets Padding instance from object
- Parameters:
obj (object) – UNO Object.
- Raises:
NotSupportedServiceError – If
objis not supported.- Returns:
Padding that represents
objpadding.- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: