ooodev.adapter.drawing.line_dash_struct_comp module

class ooodev.adapter.drawing.line_dash_struct_comp.LineDashStructComp(component, prop_name, event_provider=None)[source]

Bases: StructBase[LineDash]

LineDash 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_drawing_LineDash_changing. The event raised after the property is changed is called com_sun_star_drawing_LineDash_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 (LineDash) – 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 dash_len: int

Gets/Sets the length of a single dash.

Return type:

int

property dashes: int

Gets/Sets the number of dashes.

Return type:

int

property distance: int

Gets/Sets the distance between the dots.

Return type:

int

property dot_len: int

Gets/Sets the length of a dot.

Return type:

int

property dots: int

Gets/Sets the number of dots in this LineDash.

Return type:

int

property style: DashStyle

Gets/Sets the style of the line dash.

Returns:

LineDash Style

Return type:

DashStyle

Hint

  • DashStyle can be imported from ooodev.drawing.dash_style