## ShapeCollection.Group method

Gruppieren Sie die Formen.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| groupItems | Shape[] | die Gruppenartikel. |

### Rückgabewert

Geben Sie die Gruppenform zurück.

### Bemerkungen

Die Form in den groupItems sollte nicht gruppiert werden. Die Form muss in dieser Shapes-Sammlung sein.

### Beispiele

```csharp

[C#]
// erste Form hinzufügen
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
// zweite Form hinzufügen
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

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

```

### Siehe auch

* class [GroupShape](../../groupshape)
* class [Shape](../../shape)
* class [ShapeCollection](../../shapecollection)
* namensraum [Aspose.Cells.Drawing](../../shapecollection)
* Montage [Aspose.Cells](../../../)

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