See Also

IShapes Interface  | IShapes Members  | RowToPoints Method  | ColumnToPoints Method

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

type
The type of the new auto-shape.
left
Left edge of the new shape in points.
top
Top edge of the new shape in points.
width
Width of the new shape in points.
height
Height of the new shape in points.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

AddShape Method

SpreadsheetGear.Shapes Namespace > IShapes Interface : AddShape Method

Adds the specified auto-shape to the shapes collection at the specified position and with the specified size.

[Visual Basic]
Overridable Function AddShape( _    ByVal type As AutoShapeType, _    ByVal left As Double, _    ByVal top As Double, _    ByVal width As Double, _    ByVal height As Double _ ) As IShape
[C#]
virtual IShape AddShape(    AutoShapeType type,    double left,    double top,    double width,    double height );
[C++]
virtual IShape* AddShape(    AutoShapeType type,    double left,    double top,    double width,    double height )
[C++/CLI]
virtual IShape^ AddShape(    AutoShapeType type,    double left,    double top,    double width,    double height )

Parameters

type
The type of the new auto-shape.
left
Left edge of the new shape in points.
top
Top edge of the new shape in points.
width
Width of the new shape in points.
height
Height of the new shape in points.

Return Type

A shape object representing the newly created auto-shape.

Remarks

Use RowToPoints and ColumnToPoints to convert row and column positions to points.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IShapes Interface  | IShapes Members  | RowToPoints Method  | ColumnToPoints Method

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.