ooodev.format.inner.direct.chart2.position_size.size module
- class ooodev.format.inner.direct.chart2.position_size.size.Size(width, height)[source]
Bases:
StyleBase
Size of a shape.
New in version 0.9.4.
- __init__(width, height)[source]
Constructor
- Parameters:
width (float | UnitT) – Specifies the width of the shape (in
mm
units) or Class UnitT.height (float | UnitT) – Specifies the height of the shape (in
mm
units) or Class UnitT.
- Return type:
None
- apply(obj, **kwargs)[source]
Applies 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: