[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.AddShape

AddShape Method

AddShape(AutoShapeType, double, double, double, double)

返回表示图表中新自动形状的IShape 对象。

Declaration
IShape AddShape(AutoShapeType type, double left, double top, double width, double height)
Parameters
Type Name Description
AutoShapeType type

指定要创建的自动形状的类型。

double left

自动形状边界框左边缘到图表区域左边缘的距离,以点为单位。

double top

自动形状边界框上边缘到图表区域上边缘的距离,以点为单位。

double width

自动形状边界框的宽度,以点为单位。

double height

自动形状边界框的高度,以点为单位。

Returns
Type Description
IShape

IShape 对象。