ChartSeriesCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.IChartSeriesCollection

public class ChartSeriesCollection extends DomObject<ChartData> implements IChartSeriesCollection

Represents collection of ChartSeries

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
size()Returns a number of objects in the collection.
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 ChartDataCell and adds it to the collection.
add(IChartCellCollection cellsWithSeriesName, int type)Creates new chart series from ChartCellCollection 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 ChartSeries 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 an ActiveX control stored at specified position from the collection.
clear()Removes all controls from the collection.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.
copyTo(System.Array array, int index)Copies the entire collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.

get_Item(int index)

public final IChartSeries get_Item(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: IChartSeries - The element at the specified index.

size()

public final int size()

Returns a number of objects in the collection. Read-only int.

Returns: int

add(int type)

public final 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 final IChartSeries insert(int index, int type)

Creates new chart series and inserts it into the collection.

Parameters:

ParameterTypeDescription
indexint
typeint

Returns: IChartSeries

add(IChartDataCell cellWithSeriesName, int type)

public final IChartSeries add(IChartDataCell cellWithSeriesName, int type)

Creates new chart series from ChartDataCell 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 final IChartSeries add(IChartCellCollection cellsWithSeriesName, int type)

Creates new chart series from ChartCellCollection 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 final 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 final int indexOf(IChartSeries value)

Searches for the specified ChartSeries 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 final void remove(IChartSeries value)

Removes the specified value.

Parameters:

ParameterTypeDescription
valueIChartSeriesThe value.

removeAt(int index)

public final void removeAt(int index)

Removes an ActiveX control stored at specified position from the collection.

Parameters:

ParameterTypeDescription
indexintIndex of a control to remove.

clear()

public final void clear()

Removes all controls from the collection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<IChartSeries> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IChartSeries> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<IChartSeries> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IChartSeries> - An java.util.Iterator for the entire collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies the entire collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array
indexintIndex in the target array.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object