## ShapeCollection.Group method

Raggruppa le forme.

```csharp
public GroupShape Group(Shape[] groupItems)
```

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| groupItems | Shape[] | gli elementi del gruppo. |

### Valore di ritorno

Restituisce la forma del gruppo.

### Osservazioni

La forma in groupItems non deve essere raggruppata. La forma deve essere in questa raccolta Shapes.

### Esempi

```csharp

[C#]
//aggiungi la prima forma
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//aggiungi la seconda forma
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

Shape[] shapesArr = new Shape[] { shapes[0], shapes[1] };
GroupShape groupShape = shapes.Group(shapesArr);

```

### Guarda anche

* class [GroupShape](../../groupshape)
* class [Shape](../../shape)
* class [ShapeCollection](../../shapecollection)
* spazio dei nomi [Aspose.Cells.Drawing](../../shapecollection)
* assemblea [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
