ooodev.adapter.text.text_columns_comp module

class ooodev.adapter.text.text_columns_comp.TextColumnsComp(component)[source]

Bases: ComponentBase, TextColumnsPartial

Class for managing TextColumns Component.

Provides methods to access columns via index and to insert and remove columns.

Parameters:

component (XTextColumns) –

__init__(component)[source]

Constructor

Parameters:

component (XCell) – UNO Component that implements com.sun.star.text.TextColumns service.

Return type:

None

property automatic_distance: int

Gets/Sets the distance between the columns.

It is valid if the property IsAutomatic is set. Half of this distance is set to the left and right margins of all columns, except for the left margin of the first column, and the right margin of the last column.

Return type:

int

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

Table columns Component

Return type:

TextColumns

property is_automatic: bool

Gets whether the columns all have equal width.

This flag is set if XTextColumns.setColumnCount() is called and it is reset if XTextColumns.setColumns() is called.

Return type:

bool

property separator_line_color: Color

Gets/Sets the color of the separator lines between the columns.

Returns:

Color of the separator lines between the columns.

Return type:

Color

property separator_line_is_on: bool

Gets/Sets whether separator lines are on.

Return type:

bool

property separator_line_relative_height: int

Gets/Sets the relative height of the separator lines between the columns.

Return type:

int

property separator_line_style: int | None

Gets/Sets the style of the separator lines between the columns.

optional

Return type:

int | None

property separator_line_vertical_alignment: VerticalAlignment

Gets/Sets the vertical alignment of the separator lines between the columns.

Returns:

Vertical alignment of the separator lines between the columns.

Return type:

VerticalAlignment

Hint

  • VerticalAlignment can be imported from ooo.dyn.style.vertical_alignment

property separator_line_width: int

Gets/Sets the width of the separator lines between the columns.

Return type:

int