ooodev.format.inner.partial.calc.alignment.text_orientation_partial module

class ooodev.format.inner.partial.calc.alignment.text_orientation_partial.TextOrientationPartial(factory_name, component, lo_inst=None)[source]

Bases: object

Partial class for Alignment Text Orientation.

Parameters:
  • factory_name (str) –

  • component (Any) –

  • lo_inst (LoInst | None) –

__init__(factory_name, component, lo_inst=None)[source]
Parameters:
  • factory_name (str) –

  • component (Any) –

  • lo_inst (LoInst | None) –

Return type:

None

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

Style Text Orientation.

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.

Raises:

CancelEventError – If the event before_style_align_orientation is cancelled and not handled.

Returns:

Text Alignment instance or None if cancelled.

Return type:

TextOrientationT | None

Hint

  • EdgeKind can be imported from ooodev.format.inner.direct.calc.alignment.text_orientation

style_align_orientation_get()[source]

Gets the Alignment Text Orientation Style.

Raises:

CancelEventError – If the event before_style_align_orientation_get is cancelled and not handled.

Returns:

Text Alignment style or None if cancelled.

Return type:

TextOrientationT | None