Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IShapes Interface / AddChart Method / AddChart(String,ChartType,IRange) Method
The chart name
The chart type
The target range of the current sheet.
In This Topic
    AddChart(String,ChartType,IRange) Method
    In This Topic
    Creates a chart at the specified range on the current sheet.

    The sheet of targetRange and the sheet of the shape being added must be the same sheet.
    Syntax
    IShape AddChart( 
       System.string name,
       ChartType chartType,
       IRange targetRange
    )

    Parameters

    name
    The chart name
    chartType
    The chart type
    targetRange
    The target range of the current sheet.

    Return Value

    The IShapeThe object.
    See Also