Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IChart Interface / AddChart Method
The chart type
The distance from the left edge of the chart to the left edge of the chart area, in points.
The distance from the top edge of the chart to the top edge of the chart area, in points.
The width of the chart, in points.
The height of the chart, in points.
In This Topic
    AddChart Method (IChart)
    In This Topic
    Creates a chart at the specified location on the chart.
    Syntax
    IShape AddChart( 
       ChartType chartType,
       System.double left,
       System.double top,
       System.double width,
       System.double height
    )

    Parameters

    chartType
    The chart type
    left
    The distance from the left edge of the chart to the left edge of the chart area, in points.
    top
    The distance from the top edge of the chart to the top edge of the chart area, in points.
    width
    The width of the chart, in points.
    height
    The height of the chart, in points.

    Return Value

    The IShape object.
    See Also