AddChart Method

Spread.Services Documentation
AddChart Method
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C#
C#

GrapeCity.Documents.Spread.Drawing Namespace > IShapes Interface : AddChart Method

The chart type
The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
The distance, in points, from the top edge of the top most shape in the shape range to the top edge of the worksheet.
The width, in points, of the object
The height, in points, of the object
Creates a chart at the specified location on the active sheet.
Syntax

- C#

    IShape AddChart(
       ChartType chartType,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

#### Parameters

chartType
  The chart type
left
  The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
top
  The distance, in points, from the top edge of the top most shape in the shape range to the top edge of the worksheet.
width
  The width, in points, of the object
height
  The height, in points, of the object

#### Return Value

The IShapeThe object.
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

Copyright © GrapeCity, inc. All rights reserved.

Send Feedback