IChartSeriesCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IChartSeriesCollection extends IGenericCollection<IChartSeries>

Represents collection of IChartSeries

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
add(int type)Creates new chart series and adds it to the collection.
insert(int index, int type)Creates new chart series and inserts it into the collection.
add(IChartDataCell cellWithSeriesName, int type)Creates new chart series from IChartDataCell and adds it to the collection.
add(IChartCellCollection cellsWithSeriesName, int type)Creates new chart series from IChartCellCollection and adds it to the collection.
add(String name, int type)Creates new chart series from value and adds it to the collection.
indexOf(IChartSeries value)Searches for the specified IChartSeries and returns the zero-based index of the first occurrence within the entire Collection
remove(IChartSeries value)Removes the specified value.
removeAt(int index)Removes the element at the specified index
clear()Removes all elements (including the chart style) from the collection.

get_Item(int index)

public abstract IChartSeries get_Item(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: IChartSeries - The element at the specified index.

add(int type)

public abstract IChartSeries add(int type)

Creates new chart series and adds it to the collection.

Parameters:

ParameterTypeDescription
typeintType of series

Returns: IChartSeries - New chart series.

insert(int index, int type)

public abstract IChartSeries insert(int index, int type)

Creates new chart series and inserts it into the collection.

Parameters:

ParameterTypeDescription
indexintIndex for insertion int
typeintChart type ChartType

Returns: IChartSeries - New chart series IChartSeries

add(IChartDataCell cellWithSeriesName, int type)

public abstract IChartSeries add(IChartDataCell cellWithSeriesName, int type)

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

Parameters:

ParameterTypeDescription
cellWithSeriesNameIChartDataCellCell which contain series name.
typeintType set type of series

If chart series careted from same cell already in collection then method adds nothing and returns it’s index. |

Returns: IChartSeries - Added chart series or series that already is in collection.

add(IChartCellCollection cellsWithSeriesName, int type)

public abstract IChartSeries add(IChartCellCollection cellsWithSeriesName, int type)

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

Parameters:

ParameterTypeDescription
cellsWithSeriesNameIChartCellCollectionCells which contain series name.
typeintType set type of series

If chart series careted from same cell already in collection then method adds nothing and returns it’s index. |

Returns: IChartSeries - Added chart series or series that already is in collection.

add(String name, int type)

public abstract IChartSeries add(String name, int type)

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

Parameters:

ParameterTypeDescription
namejava.lang.StringSeries name.
typeintType set type of series

Returns: IChartSeries - Added chart series.

indexOf(IChartSeries value)

public abstract int indexOf(IChartSeries value)

Searches for the specified IChartSeries and returns the zero-based index of the first occurrence within the entire Collection

Parameters:

ParameterTypeDescription
valueIChartSeriesChart series value.

Returns: int - The zero-based index of the first occurrence of value within the entire CollectionBase, if found; otherwise, -1.

remove(IChartSeries value)

public abstract void remove(IChartSeries value)

Removes the specified value.

Parameters:

ParameterTypeDescription
valueIChartSeriesThe value.

removeAt(int index)

public abstract void removeAt(int index)

Removes the element at the specified index

Parameters:

ParameterTypeDescription
indexintIndex int

clear()

public abstract void clear()

Removes all elements (including the chart style) from the collection.