IChartSeriesCollectionAdd Method (IChartDataCell, ChartType)

Creates new chart series from IChartDataCell and adds it to the collection.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.4.0.0 (21.4)
Syntax
IChartSeries Add(
	IChartDataCell cellWithSeriesName,
	ChartType type
)

Parameters

cellWithSeriesName
Type: Aspose.Slides.ChartsIChartDataCell
Cell which contain series name.
type
Type: Aspose.Slides.ChartsChartType
Type set type of series

Return Value

Type: IChartSeries
Added chart series or series that already is in collection.
Remarks
If chart series careted from same cell already in collection then method adds nothing and returns it's index.
See Also