ooodev.format.inner.direct.calc.alignment.text_orientation module

class ooodev.format.inner.direct.calc.alignment.text_orientation.EdgeKind(value)[source]

Bases: Enum

Reference Edge Kind

INSIDE = 0

Text Extension Inside Cell.

LOWER = 3

Text Extension From Lower Cell Border (default).

UPPER = 1

Text Extension From Upper Cell Border.

class ooodev.format.inner.direct.calc.alignment.text_orientation.TextOrientation(vert_stack=None, rotation=None, edge=None)[source]

Bases: StyleBase

Text Rotation

New in version 0.9.0.

__init__(vert_stack=None, rotation=None, edge=None)[source]

Constructor

Parameters:
  • vert_stack (bool, optional) – Specifies if vertical stack is to be used.

  • rotation (int, Angle, optional) – Specifies if the rotation.

  • edge (EdgeKind, optional) – Specifies the Reference Edge.

Return type:

None

Note

When vert_stack is True other parameters are not used.

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

Gets instance from object

Parameters:

obj (object) – UNO Object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Instance that represents text orientation options.

Return type:

TextOrientation

property prop_edge: EdgeKind | None

Gets/Sets Edge Kind.

Return type:

EdgeKind | None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_rotation: Angle | None

Gets/Sets Vertical flip option

Return type:

Angle | None

property prop_vert_stacked: bool | None

Gets/Sets vertically stacked.

Return type:

bool | None