IChartSeriesCollectionAdd Method (IChartCellCollection, ChartType)

Creates new chart series from IChartCellCollection 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(
	IChartCellCollection cellsWithSeriesName,
	ChartType type
)

Parameters

cellsWithSeriesName
Type: Aspose.Slides.ChartsIChartCellCollection
Cells 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