ooodev.format.calc.direct.cell.alignment package
Module contents
- class ooodev.format.calc.direct.cell.alignment.Properties(*, wrap_auto=None, hyphen_active=None, shrink_to_fit=None, direction=None)[source]
Bases:
StyleBase
Text Properties
See also
New in version 0.9.0.
- __init__(*, wrap_auto=None, hyphen_active=None, shrink_to_fit=None, direction=None)[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.
- Return type:
None
Note
When
wrap_auto
isTrue
shrink_to_fit
is not used.See also
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO Object.
- Raises:
NotSupportedError – If
obj
is not supported.- Returns:
Instance that represents text property options.
- Return type:
- property prop_direction: TextDirectionKind | None
Gets/Sets Text Direction Kind.
- Return type:
TextDirectionKind | None
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- 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
- class ooodev.format.calc.direct.cell.alignment.TextAlign(hori_align=None, indent=None, vert_align=None)[source]
Bases:
StyleBase
Cell Text Alignment.
See also
New in version 0.9.0.
- __init__(hori_align=None, indent=None, vert_align=None)[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.
- Return type:
None
See also
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO Object.
- Raises:
NotSupportedError – If
obj
is not supported.- Returns:
Instance that represents Text Alignment.
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_hori_align: HoriAlignKind | None
Gets/Sets Horizontal align value.
- Return type:
HoriAlignKind | None
- property prop_vert_align: VertAlignKind | None
Gets/Sets vertical align value.
- Return type:
VertAlignKind | None
- class ooodev.format.calc.direct.cell.alignment.TextOrientation(vert_stack=None, rotation=None, edge=None)[source]
Bases:
StyleBase
Text Rotation
See also
New in version 0.9.0.
- __init__(vert_stack=None, rotation=None, edge=None)[source]
Constructor
- Parameters:
- Return type:
None
Note
When
vert_stack
isTrue
other parameters are not used.See also
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO Object.
- Raises:
NotSupportedError – If
obj
is not supported.- Returns:
Instance that represents text orientation options.
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_vert_stacked: bool | None
Gets/Sets vertically stacked.
- Return type:
bool | None