SpreadsheetGear 2017
AddChart Method (IShapes)






SpreadsheetGear.Shapes Namespace > IShapes Interface : AddChart Method
Left edge of the new chart in points.
Top edge of the new chart in points.
Width of the new chart in points.
Height of the new chart in points.
Adds a chart to the shapes collection at the specified position and with the specified size.
Syntax
'Declaration
 
Function AddChart( _
   ByVal left As System.Double, _
   ByVal top As System.Double, _
   ByVal width As System.Double, _
   ByVal height As System.Double _
) As IShape
'Usage
 
Dim instance As IShapes
Dim left As System.Double
Dim top As System.Double
Dim width As System.Double
Dim height As System.Double
Dim value As IShape
 
value = instance.AddChart(left, top, width, height)
IShape AddChart( 
   System.double left,
   System.double top,
   System.double width,
   System.double height
)
function AddChart( 
    left: System.Double;
    top: System.Double;
    width: System.Double;
    height: System.Double
): IShape; 
function AddChart( 
   left : System.double,
   top : System.double,
   width : System.double,
   height : System.double
) : IShape;
IShape* AddChart( 
   System.double left,
   System.double top,
   System.double width,
   System.double height
) 
IShape^ AddChart( 
   System.double left,
   System.double top,
   System.double width,
   System.double height
) 

Parameters

left
Left edge of the new chart in points.
top
Top edge of the new chart in points.
width
Width of the new chart in points.
height
Height of the new chart in points.

Return Value

A shape object representing the newly created chart.
Remarks

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IShapes Interface
IShapes Members
RowToPoints Method
ColumnToPoints Method