## ShapeCollection indexer (1 of 2)

Ruft das Formobjekt am spezifischen Index ab.

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

| Parameter | Beschreibung |
| --- | --- |
| index |  |

### Beispiele

```csharp

[C#]
// Holen Sie sich die Form
Shape shape = shapes[shapes.Count -1];
```

### Siehe auch

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

---

## ShapeCollection indexer (2 of 2)

Ruft das Formobjekt durch die Form image ab

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

| Parameter | Beschreibung |
| --- | --- |
| name |  |

### Beispiele

```csharp

[C#]
// eine Form hinzufügen
shapes.AddRectangle(2, 0, 2, 0, 130, 130);
// Holen Sie sich die Form
Shape shape1 = shapes["Rectangle 1"];
if(shape1 != null)
{
    // Habe die Form mit dem Namen 'Rechteck 1'.
}
```

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