ooodev.format.inner.direct.draw.shape.rotation.rotation module

class ooodev.format.inner.direct.draw.shape.rotation.rotation.Rotation(rotation=0)[source]

Bases: StyleBase

Rotation of a shape.

New in version 0.17.4.

__init__(rotation=0)[source]

Constructor

Parameters:

rotation (int, AngleUnitT, optional) – Specifies the rotation angle of the shape in degrees. Default is 0.

Return type:

None

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:

Rotation

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_rotation: Angle100

Gets/Sets Rotation angle of the shape in degrees in 1/100 units.

Property can be set by passing int in degrees or AngleUnitT object.

Return type:

Angle100