ooodev.format.chart2.direct.general.transparency package

Module contents

class ooodev.format.chart2.direct.general.transparency.Gradient(chart_doc, *, style=GradientStyle.LINEAR, offset=Offset(x=50, y=50), angle=0, border=0, grad_intensity=IntensityRange(start=0, end=0), **kwargs)[source]

Bases: Gradient

Chart Fill Gradient Color

New in version 0.9.4.

__init__(chart_doc, *, style=GradientStyle.LINEAR, offset=Offset(x=50, y=50), angle=0, border=0, grad_intensity=IntensityRange(start=0, end=0), **kwargs)[source]

Constructor

Parameters:
  • style (GradientStyle, optional) – Specifies the style of the gradient. Defaults to GradientStyle.LINEAR.

  • step_count (int, optional) – Specifies the number of steps of change color. Defaults to 0.

  • offset (offset, optional) – Specifies the X-coordinate (start) and Y-coordinate (end), where the gradient begins. X is effectively the center of the RADIAL, ELLIPTICAL, SQUARE and RECT style gradients. Defaults to Offset(50, 50).

  • angle (Angle, int, optional) – Specifies angle of the gradient. Defaults to 0.

  • border (int, optional) – Specifies percent of the total width where just the start color is used. Defaults to 0.

  • grad_intensity (IntensityRange, optional) – Specifies the intensity at the start point and stop point of the gradient. Defaults to IntensityRange(0, 0).

  • chart_doc (XChartDocument) –

  • kwargs (Any) –

Return type:

None

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

Copy the current instance.

Returns:

The copied instance.

Return type:

Hatch

default

Descriptor to raise an exception when an attribute is accessed after deletion.

from_obj

Descriptor to raise an exception when a method is accessed when disabled.

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

class ooodev.format.chart2.direct.general.transparency.Transparency(value=0)[source]

Bases: Transparency

Chart Fill Transparency.

New in version 0.9.4.

__init__(value=0)[source]

Constructor

Parameters:

value (Intensity, int, optional) – Specifies the transparency value from 0 to 100.

Return type:

None

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind