ooodev.format.inner.partial.chart2.legend.position.chart2_legend_pos_partial module

class ooodev.format.inner.partial.chart2.legend.position.chart2_legend_pos_partial.Chart2LegendPosPartial(component)[source]

Bases: object

Partial class for Chart2 Legend Position.

Parameters:

component (Any) –

__init__(component)[source]
Parameters:

component (Any) –

Return type:

None

style_position(*, pos=None, mode=None, no_overlap=None)[source]

Style Area Color.

Parameters:
  • pos (LegendPosition | None, optional) – Specifies the position of the legend.

  • mode (DirectionModeKind, optional) – Specifies the writing direction.

  • no_overlap (bool | None, optional) – Show the legend without overlapping the chart.

Raises:

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

Returns:

Chart Legend Position style instance or None if cancelled.

Return type:

PositionT | None

Hint

  • LegendPosition can be imported from ooo.dyn.chart2.legend_position.

  • DirectionModeKind can be imported from ooodev.format.inner.direct.chart2.title.alignment.direction.