[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.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 对象。

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

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

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

形状名称。

AutoShapeType type

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

double left

自动形状边框左上角相对于文档左上角的位置(以像素为单位)。

double top

自动形状边框左上角相对于文档左上角的位置(以像素为单位)。

double width

自动形状边框的宽度和高度,以像素为单位。

double height

自动形状边框的宽度和高度,以像素为单位。

Returns
Type Description
IShape

IShape 对象。