ooodev.format.inner.partial.position_size.draw.position_partial module
- class ooodev.format.inner.partial.position_size.draw.position_partial.PositionPartial(factory_name, component, lo_inst=None)[source]
Bases:
object
Partial class for Position.
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- __init__(factory_name, component, lo_inst=None)[source]
- Parameters:
factory_name (str) –
component (Any) –
lo_inst (LoInst | None) –
- Return type:
None
- style_position(x, y, base_point=ShapeBasePointKind.TOP_LEFT)[source]
Style Area Color.
- Parameters:
x (float, UnitT) – Specifies the x-coordinate of the position of the shape (in
mm
units) or Class UnitT.y (float, UnitT) – Specifies the y-coordinate of the position of the shape (in
mm
units) or Class UnitT.base_point (ShapeBasePointKind, optional) – Specifies the base point of the shape used to calculate the X and Y coordinates. Default is
TOP_LEFT
.
- Raises:
CancelEventError – If the event
before_style_position
is cancelled and not handled.- Returns:
Position instance or
None
if cancelled.- Return type:
PositionT | None
Hint
ShapeBasePointKind
can be imported fromooodev.utils.kind.shape_base_point_kind
- style_position_get()[source]
Gets the Position Style.
- Raises:
CancelEventError – If the event
before_style_position_get
is cancelled and not handled.- Returns:
Position style or
None
if cancelled.- Return type:
PositionT | None