ooodev.adapter.text.text_content_comp module

class ooodev.adapter.text.text_content_comp.TextContentComp(component)[source]

Bases: ComponentBase, TextContentPartial

Class for managing TextContent Component.

Parameters:

component (XTextContent) –

__init__(component)[source]

Constructor

Parameters:

component (TextContent) – UNO TextContent Component that supports com.sun.star.text.TextContent service.

Return type:

None

property anchor_type: TextContentAnchorType

Gets/Sets the anchor type of this text content.

Returns:

Anchor Type

Return type:

TextContentAnchorType

Hint

  • TextContentAnchorType``can be imported from ``ooo.dyn.text.text_content_anchor_type.

property component: com.sun.star.text.TextContent

Sheet Cell Cursor Component

Return type:

TextContent

property text_wrap: WrapTextMode

Gets/Sets if the text content is a shape and how the text is wrapped around the shape.

Returns:

Text Wrap Mode

Return type:

WrapTextMode

Hint

  • WrapTextMode can be imported from ooo.dyn.text.wrap_text_mode