[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShapes.AddShapeInPixel

AddShapeInPixel Method

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

Returns the IShape object that represents the new AutoShape in a worksheet.

Declaration
IShape AddShapeInPixel(AutoShapeType type, double left, double top, double width, double height)
Function AddShapeInPixel(type As AutoShapeType, left As Double, top As Double, width As Double, height As Double) As IShape
Parameters
Type Name Description
AutoShapeType type

Specifies the type of AutoShape to create.

double left

The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.

double top

The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.

double width

The width and height of the AutoShape's boundary box, in pixels.

double height

The width and height of the AutoShape's boundary box, in pixels.

Returns
Type Description
IShape

The IShape object.

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

Returns the IShape object that represents the new AutoShape in a worksheet.

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

The shape name.

AutoShapeType type

Specifies the type of AutoShape to create.

double left

The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.

double top

The position (in pixels) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.

double width

The width and height of the AutoShape's boundary box, in pixels.

double height

The width and height of the AutoShape's boundary box, in pixels.

Returns
Type Description
IShape

The IShape object.