ooodev.format.inner.partial.chart2.area.chart_fill_hatch_partial module
- class ooodev.format.inner.partial.chart2.area.chart_fill_hatch_partial.ChartFillHatchPartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Chart Fill Pattern.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_area_hatch(*, style=HatchStyle.SINGLE, color=0, space=0, angle=0, bg_color=-1)[source]
Style Area Color.
- Parameters:
style (HatchStyle, optional) – Specifies the kind of lines used to draw this hatch. Default
HatchStyle.SINGLE
.color (
Color
, optional) – Specifies the color of the hatch lines. Default0
.space (float, UnitT, optional) – Specifies the space between the lines in the hatch (in
mm
units) or Class UnitT. Default0.0
angle (Angle, int, optional) – Specifies angle of the hatch in degrees. Default to
0
.bg_color (Color, optional) – Specifies the background Color. Set this
-1
(default) for no background color.
- Raises:
CancelEventError – If the event
before_style_area_hatch
is cancelled and not handled.- Returns:
Fill Image instance or
None
if cancelled.- Return type:
ChartFillHatchT | None
Hint
Angle
can be imported fromooodev.units
HatchStyle
can be imported fromooo.dyn.drawing.hatch_style
- style_area_hatch_from_preset(preset)[source]
Style Area Gradient from Preset.
- Parameters:
preset (PresetHatchKind) – Preset Hatch Kind.
- Returns:
Chart Fill Hatch instance or
None
ifbefore_style_area_hatch_from_preset
event is cancelled.- Return type:
ChartFillHatchT | None
Hint
PresetHatchKind
can be imported fromooodev.format.inner.preset.preset_hatch