[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapes.AddShapeToCell

AddShapeToCell Method

AddShapeToCell(AutoShapeType, int, int, double, double)

Creates a new shape.

Declaration
IShape AddShapeToCell(AutoShapeType type, int row, int column, double width, double height)
Function AddShapeToCell(type As AutoShapeType, row As Integer, column As Integer, width As Double, height As Double) As IShape
Parameters
Type Name Description
AutoShapeType type

Specifies the type of IShape to create.

int row

The row index of the upper-left corner of the shape's bounding box.

int column

The column index of the upper-left corner of the shape's bounding box.

double width

The initial width, in pixels, of the shape.

double height

The initial height, in pixels, of the shape.

Returns
Type Description
IShape

The created IShape object.