Aspose::Cells::Drawing::ShapeCollection::AddRectangle method
Contents
[
Hide
]ShapeCollection::AddRectangle method
Adds a RectangleShape to the worksheet.
RectangleShape Aspose::Cells::Drawing::ShapeCollection::AddRectangle(int32_t topRow, int32_t top, int32_t leftColumn, int32_t left, int32_t height, int32_t width)
| Parameter | Type | Description |
|---|---|---|
| topRow | int32_t | Upper left row index. |
| top | int32_t | Represents the vertical offset of RectangleShape from its left row, in unit of pixel. |
| leftColumn | int32_t | Upper left column index. |
| left | int32_t | Represents the horizontal offset of RectangleShape from its left column, in unit of pixel. |
| height | int32_t | Represents the height of RectangleShape, in unit of pixel. |
| width | int32_t | Represents the width of RectangleShape, in unit of pixel. |
ReturnValue
A RectangleShape object.
Examples
// add a rectangle
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
See Also
- Class RectangleShape
- Class Vector
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++