## ShapeCollection.Remove method

إزالة الشكل.

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

| معامل | يكتب | وصف |
| --- | --- | --- |
| shape | Shape |  |

### أمثلة

```csharp

[C#]
// إضافة الشكل الأول
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
// أضف الشكل الثاني
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

// احصل على الشكل
Shape s = shapes["Rectangle 1"];// أو الأشكال [0] ;
if (s != null)
{
    //إزالة 
    shapes.Remove(s);
}
```

### أنظر أيضا

* class [Shape](../../shape)
* class [ShapeCollection](../../shapecollection)
* مساحة الاسم [Aspose.Cells.Drawing](../../shapecollection)
* المجسم [Aspose.Cells](../../../)

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