ooodev.format.inner.direct.chart2.chart.area.hatch module
- class ooodev.format.inner.direct.chart2.chart.area.hatch.Hatch(chart_doc, *, style=HatchStyle.SINGLE, color=0, space=0, angle=0, bg_color=-1)[source]
Bases:
StyleMulti
Class for Chart Area Fill Hatch.
See also
New in version 0.9.4.
- __init__(chart_doc, *, style=HatchStyle.SINGLE, color=0, space=0, angle=0, bg_color=-1)[source]
Constructor.
- Parameters:
chart_doc (XChartDocument) – Chart document.
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.
- Return type:
None
See also
- copy()[source]
- copy(**kwargs)
- copy(**kwargs)
Copy the current instance.
- Returns:
The copied instance.
- Return type:
- classmethod from_preset(chart_doc, preset)[source]
- classmethod from_preset(chart_doc, preset, **kwargs)
- classmethod from_preset(chart_doc, preset, **kwargs)
Gets an instance from a preset.
- Parameters:
chart_doc (XChartDocument) – Chart document.
preset (PresetHatchKind) – Preset.
- Returns:
Instance from preset.
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_hatch_name: str
Gets Hatch Name.
- Return type:
str
- property prop_style: HatchStyle
Gets/Sets the style.
- Return type:
HatchStyle