Spread Windows Forms 18
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddChart Method
The type of chart.
The position, in pixels, of the left edge of the chart, relative to the anchor.
The position, in pixels, of the top edge of the chart, relative to the anchor.
The width, in pixels, of the chart.
The height, in pixels, of the chart.
If newLayout is true, the chart is inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).


In This Topic
    AddChart Method (IShapes)
    In This Topic
    Adds a chart to the document. Returns an IShape object that represents a chart and adds it to the specified collection.
    Syntax
    'Declaration
     
    
    Function AddChart( _
       Optional ByVal chartType As ChartType, _
       Optional ByVal left As Double, _
       Optional ByVal top As Double, _
       Optional ByVal width As Double, _
       Optional ByVal height As Double, _
       Optional ByVal newLayout As Boolean _
    ) As IShape
    'Usage
     
    
    Dim instance As IShapes
    Dim chartType As ChartType
    Dim left As Double
    Dim top As Double
    Dim width As Double
    Dim height As Double
    Dim newLayout As Boolean
    Dim value As IShape
     
    value = instance.AddChart(chartType, left, top, width, height, newLayout)

    Parameters

    chartType
    The type of chart.
    left
    The position, in pixels, of the left edge of the chart, relative to the anchor.
    top
    The position, in pixels, of the top edge of the chart, relative to the anchor.
    width
    The width, in pixels, of the chart.
    height
    The height, in pixels, of the chart.
    newLayout
    If newLayout is true, the chart is inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).

    Return Value

    The IShape object represents the new chart.
    Remarks
    This function works with Spread WPF only.
    See Also