[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChart.AddShapeInPixel

AddShapeInPixel Method

AddShapeInPixel(AutoShapeType, double, double, double, double)

返回表示工作表中新建自动形状的IShape 对象。

Declaration
IShape AddShapeInPixel(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 对象。