ooodev.adapter.awt.fixed_text_partial module

class ooodev.adapter.awt.fixed_text_partial.FixedTextPartial(component, interface=com.sun.star.awt.XFixedText)[source]

Bases: object

Partial class for XFixedText.

Parameters:
  • component (XFixedText) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.awt.XFixedText)[source]

Constructor

Parameters:
  • component (XFixedText) – UNO Component that implements com.sun.star.awt.XFixedText interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XFixedText.

Return type:

None

get_alignment()[source]

Gets the alignment of the text in the control.

Returns:

The alignment of the text.

Return type:

AlignKind

Hint

  • AlignKind can be imported from ooodev.utils.kind.align_kind.

get_text()[source]

Gets the text of the control.

Return type:

str

set_alignment(align)[source]

Sets the alignment of the text in the control.

Parameters:

align (int | AlignKind) – The alignment of the text.

Return type:

None

Hint

  • AlignKind can be imported from ooodev.utils.kind.align_kind.

Return type:

None

Parameters:

align (int | AlignKind) –

set_text(text)[source]

Sets the text of the control.

Return type:

None

Parameters:

text (str) –