ooodev.adapter.table.border_line_struct_comp module

class ooodev.adapter.table.border_line_struct_comp.BorderLineStructComp(component, prop_name, event_provider=None)[source]

Bases: StructBase[BorderLine]

Border Line Struct

This class raises an event before and after a property is changed if it has been passed an event provider.

The event raised before the property is changed is called com_sun_star_table_BorderLine_changing. The event raised after the property is changed is called com_sun_star_table_BorderLine_changed.

The event args for before the property is changed is of type KeyValCancelArgs. The event args for after the property is changed is of type KeyValArgs.

__init__(component, prop_name, event_provider=None)[source]

Constructor

Parameters:
  • component (BorderLine) – Border Line.

  • prop_name (str) – Property Name. This value is assigned to the prop_name of event_data.

  • event_provider (EventsT, optional) – Event Provider.

Return type:

None

property color: Color

Gets/Sets the color value of the line.

Returns:

Color

Return type:

Color

property inner_line_width: UnitMM100

Gets/Sets the width of the inner part of a double line (in 1/100 mm).

Value can be set with a UnitT instance or an int in 1/100 mm units.

Returns:

Inner Line Width.

Return type:

UnitMM100

Hint

  • UnitMM100 can be imported from ooodev.units.

property line_distance: UnitMM100

Gets/Sets the distance between the inner and outer parts of a double line (in 1/100 mm).

Value can be set with a UnitT instance or an int in 1/100 mm units.

Returns:

Line Distance.

Return type:

UnitMM100

Hint

  • UnitMM100 can be imported from ooodev.units.

property outer_line_width: UnitMM100

Gets/Sets the width of a single line or the width of outer part of a double line (in 1/100 mm).

Value can be set with a UnitT instance or an int in 1/100 mm units.

Returns:

Outer Line Width.

Return type:

UnitMM100

Hint

  • UnitMM100 can be imported from ooodev.units.