##  group(self, group_items) {#list}
将形状分组。


### 返回

返回 group 形状。


```python

def group(self, group_items):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| group_items | list |组项目。|
### 注意事项

groupItems 中的形状不应该被分组。
该形状必须位于此形状集合中。
### 例子

```python

# add first shape
shapes.add_rectangle(2, 0, 2, 0, 50, 50)
# add second shape
shapes.add_rectangle(6, 0, 2, 0, 30, 30)
shapesArr = [shapes[0], shapes[1]]
groupShape = shapes.group(shapesArr)

```



### 也可以看看
* 模块[`aspose.cells.drawing`](../../)
* 类 [`ShapeCollection`](/cells/python-net/zh/aspose.cells.drawing/shapecollection)
