形状相关对象¶
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