## ShapeCollection.Remove method

Entfernen Sie die Form.

```csharp
public void Remove(Shape shape)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| shape | Shape |  |

### 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);

// Holen Sie sich die Form
Shape s = shapes["Rectangle 1"];// oder Formen[0];
if (s != null)
{
    //Löschen 
    shapes.Remove(s);
}
```

### Siehe auch

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

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