AddChart Method (ExcelWorksheet)
In This Topic
Adds the chart.
Syntax
'Declaration
Public Function AddChart( _
ByVal As ExcelChartType, _
ByVal As String, _
ByVal As Integer, _
ByVal fromColumn As Integer, _
ByVal As Integer, _
ByVal toColumn As Integer _
) As IExcelChart
'Usage
Dim instance As ExcelWorksheet
Dim chartType As ExcelChartType
Dim chartName As String
Dim fromRow As Integer
Dim fromColumn As Integer
Dim toRow As Integer
Dim toColumn As Integer
Dim value As IExcelChart
value = instance.AddChart(chartType, chartName, fromRow, fromColumn, toRow, toColumn)
public IExcelChart AddChart(
ExcelChartType ,
string ,
int ,
int fromColumn,
int ,
int toColumn
)
Parameters
- chartType
- Type of the chart.
- chartName
- Name of the chart.
- fromRow
- From row.
- fromColumn
- From column.
- toRow
- To row.
- toColumn
- To column.
Exceptions
See Also