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:
objectPartial 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
mmunits) or Class UnitT. Default0.0angle (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_hatchis cancelled and not handled.- Returns:
Fill Image instance or
Noneif cancelled.- Return type:
ChartFillHatchT | None
Hint
Anglecan be imported fromooodev.unitsHatchStylecan 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
Noneifbefore_style_area_hatch_from_presetevent is cancelled.- Return type:
ChartFillHatchT | None
Hint
PresetHatchKindcan be imported fromooodev.format.inner.preset.preset_hatch