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

class ooodev.format.inner.modify.calc.alignment.text_orientation.TextOrientation(*, vert_stack=None, rotation=None, edge=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Bases: CellStyleBaseMulti

Cell Style Text Orientation.

New in version 0.9.0.

__init__(*, vert_stack=None, rotation=None, edge=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[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.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Return type:

None

classmethod from_style(doc, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (StyleCellKind, str, optional) – Specifies the Cell Style that instance applies to. Default is Default Cell Style.

  • style_family (str, optional) – Style family. Default CellStyles.

Returns:

TextOrientation instance from style properties.

Return type:

TextOrientation

property prop_inner: TextOrientation

Gets/Sets Inner Inner Text Orientation instance

Return type:

TextOrientation

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str