ooodev.format.inner.partial.chart2.series.data_labels.borders.data_label_border_partial module

class ooodev.format.inner.partial.chart2.series.data_labels.borders.data_label_border_partial.DataLabelBorderPartial(factory_name, component, lo_inst=None)[source]

Bases: object

Partial class for Chart2 Data Series Data Label Border Line Style.

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_label_border_line(color=0, width=0, transparency=0, style=BorderLineKind.CONTINUOUS)[source]

Style Label Border Line.

Parameters:
  • color (Color, optional) – Line Color. Defaults to Color(0).

  • width (float | UnitT, optional) – Line Width (in mm units) or Class UnitT. Defaults to 0.

  • transparency (int | Intensity, optional) – Line transparency from 0 to 100. Defaults to 0.

  • style (BorderLineKind, optional) – Line style. Defaults to BorderLineKind.CONTINUOUS.

Raises:

CancelEventError – If the event before_style_data_label_border_line is cancelled and not handled.

Returns:

Border Line Style or None if cancelled.

Return type:

LinePropertiesT | None

Hint

  • BorderLineKind can be imported from ooodev.format.inner.preset.preset_border_line

  • Intensity can be imported from ooodev.utils.data_type.intensity

style_label_border_line_get()[source]

Gets the line properties style.

Raises:

CancelEventError – If the event before_style_data_label_border_line_get is cancelled and not handled.

Returns:

Line properties style or None if cancelled.

Return type:

LinePropertiesT | None