Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 613 Bytes

shape.rst

File metadata and controls

31 lines (20 loc) · 613 Bytes

Shape-related objects

.. currentmodule:: docx.shape


.. autoclass:: InlineShapes
   :members:
   :exclude-members: add_picture


The width and height property of |InlineShape| provide a length object that is an instance of |Length|. These instances behave like an int, but also have built-in units conversion properties, e.g.:

>>> inline_shape.height
914400
>>> inline_shape.height.inches
1.0
.. autoclass:: InlineShape
   :members: height, type, width