ooodev.format.inner.modify.calc.alignment.properties module
- class ooodev.format.inner.modify.calc.alignment.properties.Properties(*, wrap_auto=None, hyphen_active=None, shrink_to_fit=None, direction=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]
Bases:
CellStyleBaseMulti
Cell Style Properties.
See also
New in version 0.9.0.
- __init__(*, wrap_auto=None, hyphen_active=None, shrink_to_fit=None, direction=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]
Constructor
- Parameters:
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.
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
See also
- 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:
Properties
instance from style properties.- Return type:
- property prop_inner: Properties
Gets/Sets Inner Properties instance
- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str