Spread Silverlight Documentation
AddChart Method (ExcelWorksheet)


Type of the chart.
Name of the chart.
From row.
From column.
To row.
To column.
Adds the chart.
Syntax
'Declaration
 
Public Function AddChart( _
   ByVal chartType As ExcelChartType, _
   ByVal chartName As System.String, _
   ByVal fromRow As System.Integer, _
   ByVal fromColumn As System.Integer, _
   ByVal toRow As System.Integer, _
   ByVal toColumn As System.Integer _
) As IExcelChart
'Usage
 
Dim instance As ExcelWorksheet
Dim chartType As ExcelChartType
Dim chartName As System.String
Dim fromRow As System.Integer
Dim fromColumn As System.Integer
Dim toRow As System.Integer
Dim toColumn As System.Integer
Dim value As IExcelChart
 
value = instance.AddChart(chartType, chartName, fromRow, fromColumn, toRow, toColumn)
public IExcelChart AddChart( 
   ExcelChartType chartType,
   System.string chartName,
   System.int fromRow,
   System.int fromColumn,
   System.int toRow,
   System.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
ExceptionDescription
System.NotSupportedExceptionThe exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.
System.ArgumentOutOfRangeExceptionfromRow
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

ExcelWorksheet Class
ExcelWorksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.