ooodev.format.inner.partial.calc.alignment.text_align_partial module

class ooodev.format.inner.partial.calc.alignment.text_align_partial.TextAlignPartial(factory_name, component, lo_inst=None)[source]

Bases: object

Partial class for Calc Text Align.

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_text(hori_align=None, indent=None, vert_align=None)[source]

Style Alignment Text.

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 when hori_align is set to HoriAlignKind.LEFT

  • vert_align (VertAdjustKind, optional) – Specifies Vertical Alignment.

Raises:

CancelEventError – If the event before_style_align_text is cancelled and not handled.

Returns:

Text Alignment instance or None if cancelled.

Return type:

TextAlignT | None

Hint

  • HoriAlignKind can be imported from ooodev.format.inner.direct.calc.alignment.text_align

  • VertAlignKind can be imported from ooodev.format.inner.direct.calc.alignment.text_align

style_align_text_get()[source]

Gets the Alignment Text Style.

Raises:

CancelEventError – If the event before_style_align_text_get is cancelled and not handled.

Returns:

Text Alignment style or None if cancelled.

Return type:

TextAlignT | None