ExcelScript.ShapeGroup interface

表示工作表内的形状组。 若要获取相应的 Shape 对象,请使用 ShapeGroup.shape

方法

getGroupShape()

返回与 Shape 组关联的 对象。

getId()

指定形状标识符。

getShape(key)

使用形状的名称或 ID 获取形状。 如果形状对象不存在,则此方法返回 undefined

getShapes()

返回 对象的集合 Shape

ungroup()

取消分组指定形状组中的任何已分组形状。

方法详细信息

getGroupShape()

返回与 Shape 组关联的 对象。

getGroupShape(): Shape;

返回

getId()

指定形状标识符。

getId(): string;

返回

string

getShape(key)

使用形状的名称或 ID 获取形状。 如果形状对象不存在,则此方法返回 undefined

getShape(key: string): Shape | undefined;

参数

key

string

要检索的形状的名称或 ID。

返回

ExcelScript.Shape | undefined

getShapes()

返回 对象的集合 Shape

getShapes(): Shape[];

返回

ungroup()

取消分组指定形状组中的任何已分组形状。

ungroup(): void;

返回

void