Class DrawShapePartial

class ooodev.draw.partial.draw_shape_partial.DrawShapePartial(component, lo_inst=None)[source]
Parameters:
  • component (XShape) –

  • lo_inst (LoInst | None) –

__init__(component, lo_inst=None)[source]
Parameters:
  • component (XShape) –

  • lo_inst (LoInst | None) –

Return type:

None

add_text(msg, font_size=0, **props)[source]

Add text to a shape

Parameters:
  • msg (str) – Text to add

  • font_size (int, optional) – Font size.

  • props (Any, optional) – Any extra properties that will be applied to cursor (font) such as CharUnderline=1

Raises:

ShapeError – If error occurs.

Return type:

None