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:
AbstractPadding
Paragraph 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
mm
units) or Class UnitT.right (float, UnitT, optional) – Right (in
mm
units) or Class UnitT.top (float, UnitT, optional) – Top (in
mm
units) or Class UnitT.bottom (float, UnitT, optional) – Bottom (in
mm
units) or Class UnitT.all (float, UnitT, optional) – Left, right, top, bottom (in
mm
units) or Class UnitT. If argument is present thenleft
,right
,top
, andbottom
arguments 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
obj
is not supported.- Returns:
Padding that represents
obj
padding.- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: