## ShapeCollection.AddRectangle method

Agrega un RectangleShape a la hoja de trabajo.

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

| Parámetro | Escribe | Descripción |
| --- | --- | --- |
| upperLeftRow | Int32 | Índice de la fila superior izquierda. |
| top | Int32 | Representa el desplazamiento vertical de RectangleShape desde su fila izquierda, en unidades de píxel. |
| upperLeftColumn | Int32 | Índice de la columna superior izquierda. |
| left | Int32 | Representa el desplazamiento horizontal de RectangleShape desde su columna izquierda, en unidades de píxel. |
| height | Int32 | Representa la altura de RectangleShape, en unidades de píxel. |
| width | Int32 | Representa el ancho de RectangleShape, en unidades de píxel. |

### Valor_devuelto

Un objeto RectangleShape.

### Ejemplos

```csharp

[C#]
// agregar un rectángulo
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
```

### Ver también

* class [RectangleShape](../../rectangleshape)
* class [ShapeCollection](../../shapecollection)
* espacio de nombres [Aspose.Cells.Drawing](../../shapecollection)
* asamblea [Aspose.Cells](../../../)

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