ooodev.format.inner.direct.chart2.title.alignment.orientation module
- class ooodev.format.inner.direct.chart2.title.alignment.orientation.Orientation(angle=None, vertical=None)[source]
Bases:
StyleBase
Title Text orientation.
Any properties starting with
prop_
set or get current instance values.All methods starting with
fmt_
can be used to chain together properties.New in version 0.9.4.
- __init__(angle=None, vertical=None)[source]
Constructor
- Parameters:
angle (int, Angle, optional) – Rotation in degrees of the text.
vertical (bool, optional) – Specifies if the text is vertically stacked.
- Return type:
None
- fmt_angle(value)[source]
Gets new instance with the rotation set or removed.
- Parameters:
value (int | Angle | None) – The rotation in degrees,
None
to remove.self (_TOrientation) –
- Returns:
The new instance.
- Return type:
_TOrientation
- fmt_vertical(value)[source]
Gets new instance with the vertical orientation set or removed.
- Parameters:
value (bool | None) –
True
orFalse
to set vertical orientation,None
to remove.self (_TOrientation) –
- Returns:
The new instance.
- Return type:
_TOrientation
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_vertical: bool | None
Gets/Sets if the text is vertically stacked.
- Return type:
bool | None
- property vertical: _TOrientation
Gets new instance with the vertical orientation set.
- Return type:
TypeVar
(_TOrientation
, bound= Orientation)