ooodev.format.inner.direct.chart2.position_size.position module
- class ooodev.format.inner.direct.chart2.position_size.position.Position(pos_x, pos_y)[source]
Bases:
StyleBase
Positions a shape.
New in version 0.9.4.
- __init__(pos_x, pos_y)[source]
Constructor
- Parameters:
pos_x (float, UnitT) – Specifies the x-coordinate of the position of the shape (in
mm
units) or Class UnitT.pos_y (float, UnitT) – Specifies the y-coordinate of the position of the shape (in
mm
units) or Class UnitT.
- Return type:
None
- apply(obj, **kwargs)[source]
Applies position properties to
obj
- Parameters:
obj (Any) – UNO object.
- Return type:
None
- copy()[source]
- copy(**kwargs)
- copy(**kwargs)
Copy the current instance.
- Returns:
The copied instance.
- Return type:
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Creates a new instance from
obj
.- Parameters:
obj (Any) – UNO Shape object.
- Returns:
New instance.
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type: