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

class ooodev.format.inner.direct.draw.shape.text.text_columns.TextColumns(col_count=None, spacing=None)[source]

Bases: StyleBase

This class represents the text columns of a UNO object that supports com.sun.star.drawing.TextProperties service.

__init__(col_count=None, spacing=None)[source]

Constructor.

Parameters:
  • count (int, optional) – Number of columns. Defaults to None.

  • spacing (float, UnitT, optional) – Spacing between columns in MM units or UnitT. Defaults to None.

  • col_count (int | None) –

Return type:

None

apply(obj, **kwargs)[source]

Applies the properties to the given object.

Parameters:

obj (Any) – UNO Shape object.

Raises:

mEx.NotSupportedError – Object is not supported for conversion to Line Properties

Return type:

None

copy()[source]

Creates a copy of this instance.

Returns:

Copy of this instance.

Return type:

TextColumns

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_col_count: int | None
Return type:

int | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_spacing: UnitMM | None
Return type:

UnitMM | None