ooodev.format.inner.partial.chart2.grid.chart2_grid_line_partial module
- class ooodev.format.inner.partial.chart2.grid.chart2_grid_line_partial.Chart2GridLinePartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Chart2 Grid Line.
- 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_gird_line(color=0, width=0, transparency=0, style=BorderLineKind.CONTINUOUS)[source]
Style Axis Line.
- Parameters:
color (Color, optional) – Line Color. Defaults to
Color(0)
.width (float | UnitT, optional) – Line Width (in
mm
units) or Class UnitT. Defaults to0
.transparency (int | Intensity, optional) – Line transparency from
0
to100
. Defaults to0
.style (BorderLineKind, optional) – Line style. Defaults to
BorderLineKind.CONTINUOUS
.
- Raises:
CancelEventError – If the event
before_style_chart_gird_line
is cancelled and not handled.- Returns:
Font Only instance or
None
if cancelled.- Return type:
LinePropertiesT | None
Hint
BorderLineKind
can be imported fromooodev.format.inner.preset.preset_border_line
Intensity
can be imported fromooodev.utils.data_type.intensity
- style_gird_line_get()[source]
Gets the grid line style.
- Raises:
CancelEventError – If the event
before_style_chart_gird_line_get
is cancelled and not handled.- Returns:
Grid line style or
None
if cancelled.- Return type:
LinePropertiesT | None