ShapeCollection.AddAutoShapeInChart

ShapeCollection.AddAutoShapeInChart method

Adds a AutoShape to the chart.

public Shape AddAutoShapeInChart(AutoShapeType type, int top, int left, int height, int width)
ParameterTypeDescription
typeAutoShapeTypeAuto shape type.
topInt32Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area.
leftInt32Represents the vertical offset of textbox from the upper left corner in units of 1/4000 of the chart area.
heightInt32Represents the height of textbox, in units of 1/4000 of the chart area.
widthInt32Represents the width of textbox, in units of 1/4000 of the chart area.

Return Value

Returns a shape object.

Remarks

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

See Also