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 calledcom_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 typeKeyValArgs.- property angle: Angle10
Gets/Sets angle of the gradient in
1/10degree.When setting the value can be set with an
intin1/10degrees or anAngleTinstance.- Returns:
Angle in
1/10degree.- Return type:
Hint
Angle10can be imported fromooodev.units.
- property distance: UnitMM100
This is the distance between the lines in the hatch.
When setting the value can be set with an
intin1/100mmor anUnitTinstance.- Returns:
Distance in
1/100mm.- Return type:
Hint
UnitMM100can be imported fromooodev.units.
- property style: HatchStyle
Gets/Sets the style of the gradient.
- Returns:
Hatch Style
- Return type:
HatchStyle
Hint
HatchStylecan be imported fromooodev.drawing.hatch_style