## ShapeCollection.AddRectangle method

Aggiunge una forma rettangolare al foglio di lavoro.

```csharp
public RectangleShape AddRectangle(int upperLeftRow, int top, int upperLeftColumn, int left, 
    int height, int width)
```

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| upperLeftRow | Int32 | Indice della riga in alto a sinistra. |
| top | Int32 | Rappresenta l'offset verticale di RectangleShape dalla riga sinistra, in unità di pixel. |
| upperLeftColumn | Int32 | Indice della colonna in alto a sinistra. |
| left | Int32 | Rappresenta l'offset orizzontale di RectangleShape dalla colonna di sinistra, in unità di pixel. |
| height | Int32 | Rappresenta l'altezza di RectangleShape, in unità di pixel. |
| width | Int32 | Rappresenta la larghezza di RectangleShape, in unità di pixel. |

### Valore di ritorno

Un oggetto RectangleShape.

### Esempi

```csharp

[C#]
// aggiungi un rettangolo
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
```

### Guarda anche

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

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