## ShapeCollection.AddRectangle method

Ajoute un RectangleShape à la feuille de calcul.

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| upperLeftRow | Int32 | Index de ligne en haut à gauche. |
| top | Int32 | Représente le décalage vertical de RectangleShape par rapport à sa ligne de gauche, en unité de pixel. |
| upperLeftColumn | Int32 | Index de la colonne en haut à gauche. |
| left | Int32 | Représente le décalage horizontal de RectangleShape par rapport à sa colonne de gauche, en pixels. |
| height | Int32 | Représente la hauteur de RectangleShape, en unité de pixel. |
| width | Int32 | Représente la largeur de RectangleShape, en unité de pixel. |

### Return_Value

Un objet RectangleShape.

### Exemples

```csharp

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

### Voir également

* class [RectangleShape](../../rectangleshape)
* class [ShapeCollection](../../shapecollection)
* espace de noms [Aspose.Cells.Drawing](../../shapecollection)
* Assemblée [Aspose.Cells](../../../)

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