ooodev.adapter.text.text_content_partial module

class ooodev.adapter.text.text_content_partial.TextContentPartial(component, interface=com.sun.star.text.XTextContent)[source]

Bases: object

Partial class for XTextContent.

Parameters:
  • component (XTextContent) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.text.XTextContent)[source]

Constructor

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

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

Return type:

None

attach(text_range)[source]

Attaches a text range to this text content.

Return type:

None

Parameters:

text_range (XTextRange) –

get_anchor()[source]

Returns the anchor of this text content.

Return type:

XTextRange