## ShapeCollection indexer (1 of 2)

Ottiene l'oggetto forma all'indice specifico.

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

| Parametro | Descrizione |
| --- | --- |
| index |  |

### Esempi

```csharp

[C#]
//ottengo la forma
Shape shape = shapes[shapes.Count -1];
```

### Guarda anche

* class [Shape](../../shape)
* class [ShapeCollection](../../shapecollection)
* spazio dei nomi [Aspose.Cells.Drawing](../../shapecollection)
* assemblea [Aspose.Cells](../../../)

---

## ShapeCollection indexer (2 of 2)

Ottiene l'oggetto forma tramite l'immagine forma

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

| Parametro | Descrizione |
| --- | --- |
| name |  |

### Esempi

```csharp

[C#]
//aggiungi una forma
shapes.AddRectangle(2, 0, 2, 0, 130, 130);
//ottengo la forma
Shape shape1 = shapes["Rectangle 1"];
if(shape1 != null)
{
    //Ottenuto la forma denominata 'Rettangolo 1'.
}
```

### Guarda anche

* class [Shape](../../shape)
* class [ShapeCollection](../../shapecollection)
* spazio dei nomi [Aspose.Cells.Drawing](../../shapecollection)
* assemblea [Aspose.Cells](../../../)

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