ooodev.format.inner.direct.chart2.chart.borders.line_properties module

class ooodev.format.inner.direct.chart2.chart.borders.line_properties.LineProperties(style=BorderLineKind.CONTINUOUS, color=0, width=0, transparency=0)[source]

Bases: StyleBase

This class represents the line properties of a chart borders line properties.

__init__(style=BorderLineKind.CONTINUOUS, color=0, width=0, transparency=0)[source]

Constructor.

Parameters:
  • style (BorderLineKind) – Line style. Defaults to BorderLineKind.CONTINUOUS.

  • 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.

Return type:

None

copy()[source]
copy(**kwargs)
copy(**kwargs)

Copy the current instance.

Returns:

The copied instance.

Return type:

LineProperties

classmethod from_obj(obj: object)[source]
classmethod from_obj(obj: object, **kwargs)
classmethod from_obj(obj, **kwargs)

Creates a new instance from obj.

Parameters:

obj (Any) – UNO Shape object.

Returns:

New instance.

Return type:

LineProperties

property prop_color: Color

Gets/Sets the color.

Return type:

NewType()(Color, int)

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_style: BorderLineKind

Gets/Sets the style.

Return type:

BorderLineKind

property prop_transparency: Intensity

Gets/Sets the transparency.

Return type:

Intensity

property prop_width: UnitMM
Return type:

UnitMM