IChartSeriesCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IChartSeriesCollection extends IGenericCollection<IChartSeries>

Represents collection of IChartSeries

Methods

Method Description
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:

Parameter Type Description
index int

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:

Parameter Type Description
type int Type 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:

Parameter Type Description
index int Index for insertion int
type int Chart 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:

Parameter Type Description
cellWithSeriesName IChartDataCell Cell which contain series name.
type int Type 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:

Parameter Type Description
cellsWithSeriesName IChartCellCollection Cells which contain series name.
type int Type 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:

Parameter Type Description
name java.lang.String Series name.
type int Type 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:

Parameter Type Description
value IChartSeries Chart 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:

Parameter Type Description
value IChartSeries The value.

removeAt(int index)

public abstract void removeAt(int index)

Removes the element at the specified index

Parameters:

Parameter Type Description
index int Index int

clear()

public abstract void clear()

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