ooodev.format.inner.partial.chart2.title.alignment.chart2_title_orientation_partial module
- class ooodev.format.inner.partial.chart2.title.alignment.chart2_title_orientation_partial.Chart2TitleOrientationPartial(component)[source]
Bases:
object
Partial class for Chart2 Data Labels Orientation.
- Parameters:
component (Any) –
- style_orientation(angle=None, vertical=None)[source]
Style Chart2 Data Series Text Attributes.
- Parameters:
angle (int, Angle, optional) – Rotation in degrees of the text.
vertical (bool, optional) – Specifies if the text is vertically stacked.
- Raises:
CancelEventError – If the event
before_style_chart2_text_orientation
is cancelled and not handled.- Returns:
Orientation Style instance or
None
if cancelled.- Return type:
Orientation | None
- style_write_mode(mode=DirectionModeKind.PAGE)[source]
Style Chart2 Data Series Text Writing Mode.
- Parameters:
mode (DirectionModeKind, optional) – Specifies the writing direction.
- Raises:
CancelEventError – If the event
before_style_chart2_text_direction
is cancelled and not handled.- Returns:
Direction Style instance or
None
if cancelled.- Return type:
Direction | None
Hint
DirectionModeKind
can be imported fromooodev.format.chart2.direct.title.alignment