ooodev.format.proto.calc.alignment.text_orientation_t module

protocol ooodev.format.proto.calc.alignment.text_orientation_t.TextOrientationT[source]

Bases: StyleT, Protocol

Cell Text Rotation.

Classes that implement this protocol must have the following methods / attributes:

__init__(vert_stack=Ellipsis, rotation=Ellipsis, edge=Ellipsis)[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.

Hint

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

from_obj(obj: object) TextOrientationT
from_obj(obj: object, **kwargs) TextOrientationT
from_obj(**kwds)

Helper for @overload to raise when called.

__protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'from_obj', 'get_attrs', 'get_props', 'get_update_obj', 'has_update_obj', 'on_applied', 'on_applying', 'on_property_backed_up', 'on_property_backing_up', 'on_property_restore_set', 'on_property_restore_setting', 'on_property_set', 'on_property_set_error', 'prop_edge', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_parent', 'prop_rotation', 'prop_vert_stacked', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
property prop_edge: EdgeKind | None

Gets/Sets Edge Kind.

Return type:

EdgeKind | None

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