Shapes

class Shapes(impl: Any)

指定したシート内のすべての shape オブジェクトのコレクション:

>>> import xlwings as xw
>>> xw.books['Book1'].sheets[0].shapes
Shapes([<Shape 'Oval 1' in <Sheet [Book1]Sheet1>>,
        <Shape 'Rectangle 1' in <Sheet [Book1]Sheet1>>])

Added in version 0.9.0.

property api: Any

使用しているエンジンのネイティブ オブジェクト(pywin32 オブジェクトまたは appscript オブジェクト)を返します。

property count: int

コレクションに含まれるオブジェクトの数を返します。