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
- 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:
- property prop_col_count: int | None
- Return type:
int | None
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: