Aspose::Cells::Drawing::ShapeCollection::AddAutoShape method
Contents
[
Hide
]ShapeCollection::AddAutoShape method
Adds a AutoShape to the worksheet.
Shape Aspose::Cells::Drawing::ShapeCollection::AddAutoShape(AutoShapeType type, int32_t upperLeftRow, int32_t top, int32_t upperLeftColumn, int32_t left, int32_t height, int32_t width)
Parameter | Type | Description |
---|---|---|
type | AutoShapeType | Auto shape type. |
upperLeftRow | int32_t | Upper left row index. |
top | int32_t | Represents the vertical offset of Shape from its left row, in unit of pixel. |
upperLeftColumn | int32_t | Upper left column index. |
left | int32_t | Represents the horizontal offset of Shape from its left column, in unit of pixel. |
height | int32_t | Represents the height of Shape, in unit of pixel. |
width | int32_t | Represents the width of Shape, in unit of pixel. |
ReturnValue
A Shape object.
Remarks
The type could not be Chart/Comment/Picture/OleObject/Polygon/DialogBox
Examples
//Adds a AutoShape to the worksheet.
Shape autoShape = shapes.AddAutoShape(AutoShapeType::Cube, 1, 0, 1, 0, 100, 50);
See Also
- Class Shape
- Enum AutoShapeType
- Class Vector
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++