ooodev.format.draw.direct.position_size.position_size.adapt module

class ooodev.format.draw.direct.position_size.position_size.adapt.Adapt(fit_height=None, fit_width=None)[source]

Bases: Adapt

Shape Adapt (only for Shape Text Boxes).

New in version 0.17.3.

__init__(fit_height=None, fit_width=None)[source]

Constructor

Parameters:
  • fit_height (bool, optional) – Expands the width of the object to the width of the text, if the object is smaller than the text.

  • fit_width (bool, optional) – Expands the height of the object to the height of the text, if the object is smaller than the text.

Return type:

None

Note

Adapt is only available for Text Boxes.

New in version 0.17.3.