Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / AddChart Method / AddChart(String,SpreadChartType,String,String,String,Int32,Double,Int32,Double,Double,Double) Method
The name of the chart.
Type of the chart.
The items label formula.
The name formula.
The data formula.
The row.
The row offset.
The column.
The column offset.
The width.
The height.


In This Topic
    AddChart(String,SpreadChartType,String,String,String,Int32,Double,Int32,Double,Double,Double) Method
    In This Topic
    Adds the chart.
    Syntax
    'Declaration
     
    Public Overloads Function AddChart( _
       ByVal name As String, _
       ByVal chartType As SpreadChartType, _
       ByVal itemsFormula As String, _
       ByVal nameFormula As String, _
       ByVal dataFormula As String, _
       ByVal row As Integer, _
       ByVal rowOffset As Double, _
       ByVal column As Integer, _
       ByVal columnOffset As Double, _
       ByVal width As Double, _
       ByVal height As Double _
    ) As SpreadChart
    'Usage
     
    Dim instance As Worksheet
    Dim name As String
    Dim chartType As SpreadChartType
    Dim itemsFormula As String
    Dim nameFormula As String
    Dim dataFormula As String
    Dim row As Integer
    Dim rowOffset As Double
    Dim column As Integer
    Dim columnOffset As Double
    Dim width As Double
    Dim height As Double
    Dim value As SpreadChart
     
    value = instance.AddChart(name, chartType, itemsFormula, nameFormula, dataFormula, row, rowOffset, column, columnOffset, width, height)
    public SpreadChart AddChart( 
       string name,
       SpreadChartType chartType,
       string itemsFormula,
       string nameFormula,
       string dataFormula,
       int row,
       double rowOffset,
       int column,
       double columnOffset,
       double width,
       double height
    )

    Parameters

    name
    The name of the chart.
    chartType
    Type of the chart.
    itemsFormula
    The items label formula.
    nameFormula
    The name formula.
    dataFormula
    The data formula.
    row
    The row.
    rowOffset
    The row offset.
    column
    The column.
    columnOffset
    The column offset.
    width
    The width.
    height
    The height.
    Remarks
    The row parameter represents the start row index and column represents the start column index. This method will auto detect a cell range based on these two indexes. The chartType parameter indicates which type of chart will be added. The width and height parameters specify the size of the chart.
    See Also