Documents for Excel .NET Edition | GCDocuments
GrapeCity.Documents.Excel.Drawing Namespace / IShapes Interface / AddChart Method / AddChart(ChartType,Double,Double,Double,Double) 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
In This Topic
    AddChart(ChartType,Double,Double,Double,Double) Method
    In This Topic
    Creates a chart at the specified location on the active sheet.
    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, 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.
    See Also