## ShapeCollection.AddRectangle method

Fügt dem Arbeitsblatt eine RectangleShape hinzu.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| upperLeftRow | Int32 | Zeilenindex oben links. |
| top | Int32 | Stellt den vertikalen Versatz von RectangleShape von seiner linken Zeile in Pixeleinheiten dar. |
| upperLeftColumn | Int32 | Spaltenindex oben links. |
| left | Int32 | Stellt den horizontalen Versatz von RectangleShape von seiner linken Spalte in Pixeleinheiten dar. |
| height | Int32 | Stellt die Höhe von RectangleShape in Pixeleinheiten dar. |
| width | Int32 | Stellt die Breite von RectangleShape in Pixeleinheiten dar. |

### Rückgabewert

Ein RectangleShape-Objekt.

### Beispiele

```csharp

[C#]
// Rechteck hinzufügen
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
```

### Siehe auch

* class [RectangleShape](../../rectangleshape)
* class [ShapeCollection](../../shapecollection)
* namensraum [Aspose.Cells.Drawing](../../shapecollection)
* Montage [Aspose.Cells](../../../)

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