Shape-related objects¶
InlineShapes objects¶
- class docx.shape.InlineShapes(body_elm, parent)[source]¶
Sequence of
InlineShapeinstances, supporting len(), iteration, and indexed access.
InlineShape objects¶
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