Aspose::Cells::Drawing::ShapeCollection::AddRectangle method

ShapeCollection::AddRectangle method

Adds a RectangleShape to the worksheet.

RectangleShape Aspose::Cells::Drawing::ShapeCollection::AddRectangle(int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
ParameterTypeDescription
upperLeftRowint32_tUpper left row index.
topint32_tRepresents the vertical offset of RectangleShape from its left row, in unit of pixel.
upperLeftColumnint32_tUpper left column index.
leftint32_tRepresents the horizontal offset of RectangleShape from its left column, in unit of pixel.
heightint32_tRepresents the height of RectangleShape, in unit of pixel.
widthint32_tRepresents 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