Navigation

  • index
  • next |
  • previous |
  • python-docx 0.8.11 documentation »

Shape-related objects¶

InlineShapes objects¶

class docx.shape.InlineShapes(body_elm, parent)[source]¶

Sequence of InlineShape instances, 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
class docx.shape.InlineShape(inline)[source]¶

Proxy for an <wp:inline> element, representing the container for an inline graphical object.

height¶

Read/write. The display height of this inline shape as an Emu instance.

type¶

The type of this inline shape as a member of docx.enum.shape.WD_INLINE_SHAPE, e.g. LINKED_PICTURE. Read-only.

width¶

Read/write. The display width of this inline shape as an Emu instance.

Table of Contents

  • Shape-related objects
    • InlineShapes objects
    • InlineShape objects

Previous topic

Section objects

Next topic

DrawingML objects

Useful Links

  • python-docx @ GitHub
  • python-docx @ PyPI
  • Issue Tracker

Quick search

Navigation

  • index
  • next |
  • previous |
  • python-docx 0.8.11 documentation »
© Copyright 2013, Steve Canny. Created using Sphinx 1.8.5.
Theme based on Read The Docs