导航

  • 索引
  • 下一页 |
  • 上一页 |
  • python-docx 1.0.1 文档 »
  • 形状相关对象

形状相关对象¶

InlineShapes 对象¶

class docx.shape.InlineShapes(body_elm, parent)[源代码]¶

序列 InlineShape 实例,支持len()、迭代和索引访问。

InlineShape 对象¶

这个 width 和 height 性质 InlineShape 提供的length对象是 Length . 这些实例的行为类似于int,但也具有内置的单位转换属性,例如:

>>> inline_shape.height
914400
>>> inline_shape.height.inches
1.0
class docx.shape.InlineShape(inline)[源代码]¶

代理 <wp:inline> 元素,表示内联图形对象的容器。

property height¶

读/写。

此内联形状的显示高度为 Emu 举个例子。

property type¶

成员的此内联形状的类型 docx.enum.shape.WD_INLINE_SHAPE ,例如 LINKED_PICTURE 。

只读。

property width¶

读/写。

此内联形状的显示宽度为 Emu 举个例子。

目录

  • 形状相关对象
    • InlineShapes 对象
      • InlineShapes
    • InlineShape 对象
      • InlineShape
        • InlineShape.height
        • InlineShape.type
        • InlineShape.width

上一主题

截面对象

下一主题

DrawingML对象

Useful Links

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

快速搜索

导航

  • 索引
  • 下一页 |
  • 上一页 |
  • python-docx 1.0.1 文档 »
  • 形状相关对象
© Copyright 2013, Steve Canny. Created using Sphinx 6.2.1.
Theme based on Read The Docs