## ShapeCollection::AddAutoShapeInChart method


Adds a AutoShape to the chart.

```cpp
Shape Aspose::Cells::Drawing::ShapeCollection::AddAutoShapeInChart(AutoShapeType type, int32_t top, int32_t left, int32_t height, int32_t width)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | AutoShapeType | Auto shape type. |
| top | int32_t | Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. |
| left | int32_t | Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area. |
| height | int32_t | Represents the height of textbox, in units of 1/4000 of the chart area. |
| width | int32_t | Represents the width of textbox, in units of 1/4000 of the chart area. |

## ReturnValue

Returns a shape object.
## Remarks



The type could not be Chart/Comment/Picture/OleObject/Polygon/DialogBox
## See Also

* Class [Shape](../../shape/)
* Enum [AutoShapeType](../../autoshapetype/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [ShapeCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
