WorksheetChartsCollection
Add Method (ExcelChartType)
 | 
Adds a new chart to the worksheet with the specified chart type.
Namespace:
Spire.Xls.Collections
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
 
public Chart Add(
	ExcelChartType chartType
)
 
Public Function Add ( 
	chartType As ExcelChartType
) As Chart
 
public:
Chart^ Add(
	ExcelChartType chartType
)
 
member Add : 
chartType : ExcelChartType -> Chart 
 
 
 
Parameters
- 
chartType
 
- 
Type:
Spire.Xls
ExcelChartType
The type of chart to add, specified by the ExcelChartType enumeration.
 
Return Value
Type:
Chart
A Chart object representing the newly added chart.
 
See Also