ooodev.adapter.drawing.hatch_struct_comp module

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

Bases: StructBase[Hatch]

Hatch 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_Hatch_changing. The event raised after the property is changed is called com_sun_star_drawing_Hatch_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 (Hatch) – 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 angle: Angle10

Gets/Sets angle of the gradient in 1/10 degree.

When setting the value can be set with an int in 1/10 degrees or an AngleT instance.

Returns:

Angle in 1/10 degree.

Return type:

Angle10

Hint

  • Angle10 can be imported from ooodev.units.

property color: Color

Gets/Sets the color of the hatch lines.

Returns:

Color

Return type:

Color

property distance: UnitMM100

This is the distance between the lines in the hatch.

When setting the value can be set with an int in 1/100mm or an UnitT instance.

Returns:

Distance in 1/100mm.

Return type:

UnitMM100

Hint

  • UnitMM100 can be imported from ooodev.units.

property style: HatchStyle

Gets/Sets the style of the gradient.

Returns:

Hatch Style

Return type:

HatchStyle

Hint

  • HatchStyle can be imported from ooodev.drawing.hatch_style