Spread.Services Documentation
AddShape Method
GrapeCity.Documents.Spread.Drawing Namespace > IShapes Interface : AddShape Method
Specifies the type of AutoShape to create.
The position (in points) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
The position (in points) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
The width and height of the AutoShape's boundary box, in points.
The width and height of the AutoShape's boundary box, in points.
Returns the IShape object that represents the new AutoShape in a worksheet.
Syntax
IShape AddShape( 
   AutoShapeType type,
   System.double left,
   System.double top,
   System.double width,
   System.double height
)

Parameters

type
Specifies the type of AutoShape to create.
left
The position (in points) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
top
The position (in points) of the upper-left corner of the AutoShape's boundary box relative to the upper-left corner of the document.
width
The width and height of the AutoShape's boundary box, in points.
height
The width and height of the AutoShape's boundary box, in points.

Return Value

The IShapeThe object.
See Also

Reference

IShapes Interface
IShapes Members