ooodev.format.inner.partial.calc.alignment.properties_partial module
- class ooodev.format.inner.partial.calc.alignment.properties_partial.PropertiesPartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Calc Cell/Range Properties.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_align_properties(*, wrap_auto=None, hyphen_active=None, shrink_to_fit=None, direction=None)[source]
Style Alignment Properties.
- Parameters:
hori_align (HoriAlignKind, optional) – Specifies Horizontal Alignment.
indent – (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.
wrap_auto (bool | None) –
hyphen_active (bool | None) –
shrink_to_fit (bool | None) –
direction (TextDirectionKind | None) –
- Raises:
CancelEventError – If the event
before_style_align_properties
is cancelled and not handled.- Returns:
Text Alignment instance or
None
if cancelled.- Return type:
PropertiesT | None
Hint
TextDirectionKind
can be imported fromooodev.format.inner.direct.calc.alignment.properties
- style_align_properties_get()[source]
Gets the Alignment Properties Style.
- Raises:
CancelEventError – If the event
before_style_align_properties_get
is cancelled and not handled.- Returns:
Text Alignment style or
None
if cancelled.- Return type:
PropertiesT | None