ooodev.adapter.drawing.shape_partial module
- class ooodev.adapter.drawing.shape_partial.ShapePartial(component, interface=com.sun.star.drawing.XShape)[source]
Bases:
object
Partial Class XShape.
- Parameters:
component (XShape) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.drawing.XShape)[source]
Constructor
- Parameters:
component (XShape) – UNO Component that implements
com.sun.star.drawing.XShape
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XShape
.
- Return type:
None
- get_position()[source]
Gets the position of the shape in
100th mm
units.- Returns:
The position of the shape.
- Return type:
- get_size()[source]
Gets the size of the shape in
100th mm
units.- Returns:
The size of the shape.
- Return type: