ooodev.format.inner.modify.calc.alignment.text_align module
- class ooodev.format.inner.modify.calc.alignment.text_align.TextAlign(*, hori_align=None, indent=None, vert_align=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]
Bases:
CellStyleBaseMulti
Cell Style Text Align.
See also
New in version 0.9.0.
- __init__(*, hori_align=None, indent=None, vert_align=None, style_name=StyleCellKind.DEFAULT, style_family='CellStyles')[source]
Constructor
- Parameters:
hori_align (HoriAlignKind, optional) – Specifies Horizontal Alignment.
indent (float | UnitT | None) – (float, UnitT, optional): Specifies indent in
pt
(point) units or Class UnitT. Only used whenhori_align
is set toHoriAlignKind.LEFT
vert_align (VertAdjustKind, optional) – Specifies Vertical Alignment.
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:
TextAlign
instance from style properties.- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str