Add()

IChartSeriesCollection::Add(ChartType) method

Creates new chart series and adds it to the collection.

virtual System::SharedPtr<IChartSeries> Aspose::Slides::Charts::IChartSeriesCollection::Add(ChartType type)=0

Arguments

ParameterTypeDescription
typeChartTypeType of series

Return Value

New chart series.

IChartSeriesCollection::Add(System::SharedPtr<IChartDataCell>, ChartType) method

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

virtual System::SharedPtr<IChartSeries> Aspose::Slides::Charts::IChartSeriesCollection::Add(System::SharedPtr<IChartDataCell> cellWithSeriesName, ChartType type)=0

Arguments

ParameterTypeDescription
cellWithSeriesNameSystem::SharedPtr<IChartDataCell>Cell which contain series name.
typeChartTypeType set type of series

Return Value

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.

IChartSeriesCollection::Add(System::SharedPtr<IChartCellCollection>, ChartType) method

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

virtual System::SharedPtr<IChartSeries> Aspose::Slides::Charts::IChartSeriesCollection::Add(System::SharedPtr<IChartCellCollection> cellsWithSeriesName, ChartType type)=0

Arguments

ParameterTypeDescription
cellsWithSeriesNameSystem::SharedPtr<IChartCellCollection>Cells which contain series name.
typeChartTypeType set type of series

Return Value

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.

IChartSeriesCollection::Add(System::String, ChartType) method

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

virtual System::SharedPtr<IChartSeries> Aspose::Slides::Charts::IChartSeriesCollection::Add(System::String name, ChartType type)=0

Arguments

ParameterTypeDescription
nameSystem::StringSeries name.
typeChartTypeType set type of series

Return Value

Added chart series.

See Also