ChartSeriesCollectionAdd Method (IChartCellCollection, ChartType)

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

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
public 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.

Implements

IChartSeriesCollectionAdd(IChartCellCollection, ChartType)
Remarks
If chart series careted from same cell already in collection then method adds nothing and returns it's index.
See Also