## ShapeCollection indexer (1 of 2)

الحصول على كائن الشكل في الفهرس المحدد .

```csharp
public Shape this[int index] { get; }
```

| معامل | وصف |
| --- | --- |
| index |  |

### أمثلة

```csharp

[C#]
// احصل على الشكل
Shape shape = shapes[shapes.Count -1];
```

### أنظر أيضا

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

---

## ShapeCollection indexer (2 of 2)

الحصول على كائن الشكل بالشكل image

```csharp
public Shape this[string name] { get; }
```

| معامل | وصف |
| --- | --- |
| name |  |

### أمثلة

```csharp

[C#]
// إضافة شكل
shapes.AddRectangle(2, 0, 2, 0, 130, 130);
// احصل على الشكل
Shape shape1 = shapes["Rectangle 1"];
if(shape1 != null)
{
    // حصلت على الشكل المسمى "المستطيل 1".
}
```

### أنظر أيضا

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

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