ooodev.format.inner.direct.draw.shape.text.text.spacing module

class ooodev.format.inner.direct.draw.shape.text.text.spacing.Spacing(left=None, right=None, top=None, bottom=None)[source]

Bases: StyleBase

This class represents the text spacing of an object that supports com.sun.star.drawing.TextProperties.

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

Constructor.

Parameters:
  • left (float, UnitT, optional) – Left spacing in MM units or UnitT. Defaults to None.

  • right (float, UnitT, optional) – Right spacing in MM units or UnitT. Defaults to None.

  • top (float, UnitT, optional) – Top spacing in MM units or UnitT. Defaults to None.

  • bottom (float, UnitT, optional) – Bottom spacing in MM units or UnitT. Defaults to None.

Return type:

None

classmethod from_obj(obj: object)[source]
classmethod from_obj(obj: object, **kwargs)
classmethod from_obj(obj, **kwargs)

Creates a new instance from obj.

Parameters:

obj (Any) – UNO Shape object.

Returns:

New instance.

Return type:

Spacing

property prop_bottom: UnitMM | None
Return type:

UnitMM | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_left: UnitMM | None
Return type:

UnitMM | None

property prop_right: UnitMM | None
Return type:

UnitMM | None

property prop_top: UnitMM | None
Return type:

UnitMM | None