ooodev.format.proto.calc.alignment.properties_t module

protocol ooodev.format.proto.calc.alignment.properties_t.PropertiesT[source]

Bases: StyleT, Protocol

Cell Text Properties.

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

__init__(*, wrap_auto=Ellipsis, hyphen_active=Ellipsis, shrink_to_fit=Ellipsis, direction=Ellipsis)[source]


  • wrap_auto (bool, optional) – Specifies wrap text automatically.

  • hyphen_active (bool, optional) – Specifies hyphenation active.

  • shrink_to_fit (bool, optional) – Specifies if text will shrink to cell.

  • direction (TextDirectionKind, optional) – Specifies Text Direction.

Return type:



  • TextDirectionKind can be imported from

from_obj(obj: object) PropertiesT
from_obj(obj: object, **kwargs) PropertiesT

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_direction', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_hyphen_active', 'prop_parent', 'prop_shrink_to_fit', 'prop_wrap_auto', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'support_service', 'update'}
property prop_direction: TextDirectionKind | None

Gets/Sets Text Direction Kind.

Return type:

TextDirectionKind | None

property prop_hyphen_active: bool | None

Gets/Sets If text is hyphenation is active.

Return type:

bool | None

property prop_shrink_to_fit: bool | None

Gets/Sets If text shrinks to cell size.

Return type:

bool | None

property prop_wrap_auto: bool | None

Gets/Sets If text is wrapped automatically.

Return type:

bool | None