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/10
degree.When setting the value can be set with an
int
in1/10
degrees or anAngleT
instance.- Returns:
Angle in
1/10
degree.- Return type:
Hint
Angle10
can 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
int
in1/100mm
or anUnitT
instance.- Returns:
Distance in
1/100mm
.- Return type:
Hint
UnitMM100
can be imported fromooodev.units
.
- property style: HatchStyle
Gets/Sets the style of the gradient.
- Returns:
Hatch Style
- Return type:
HatchStyle
Hint
HatchStyle
can be imported fromooodev.drawing.hatch_style