com.aspose.slides
Class ChartSeriesCollection

java.lang.Object
  extended by com.aspose.slides.ChartSeriesCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartSeries>, com.aspose.ms.System.Collections.IEnumerable<IChartSeries>, IChartSeriesCollection, IGenericCollection<IChartSeries>, java.lang.Iterable<IChartSeries>

public class ChartSeriesCollection
extends java.lang.Object
implements IChartSeriesCollection

Represents collection of ChartSeries


Method Summary
 IChartSeries add(IChartCellCollection cellsWithSeriesName, int type)
           Creates new chart series from ChartCellCollection and adds it to the collection.
 IChartSeries add(IChartDataCell cellWithSeriesName, int type)
           Creates new chart series from ChartDataCell and adds it to the collection.
 IChartSeries add(int type)
           Creates new chart series and adds it to the collection.
 IChartSeries add(java.lang.String name, int type)
           Creates new chart series from value and adds it to the collection.
 void clear()
           Removes all controls from the collection.
 void copyTo(IChartSeries[] array, int index)
           Copies the entire collection to the specified array.
 IChartSeries get_Item(int index)
           Gets the element at the specified index.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 int indexOf(IChartSeries value)
           Searches for the specified ChartSeries and returns the zero-based index of the first occurrence within the entire Collection
 IChartSeries insert(int index, int type)
           Creates new chart series and inserts it into the collection.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartSeries> iterator()
           Returns an enumerator that iterates through the collection.
 void remove(IChartSeries value)
           Removes the specified value.
 void removeAt(int index)
           Removes an ActiveX control stored at specified position from the collection.
 int size()
           Returns a number of objects in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public IChartSeries get_Item(int index)

Gets the element at the specified index.

Specified by:
get_Item in interface IChartSeriesCollection
Returns:
The element at the specified index.
Throws:
T:System.ArgumentOutOfRangeException - index is not a valid index in the T:System.Collections.IList.

size

public int size()

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

Specified by:
size in interface IGenericCollection<IChartSeries>

add

public IChartSeries add(int type)

Creates new chart series and adds it to the collection.

Specified by:
add in interface IChartSeriesCollection
Parameters:
type - Type of series
Returns:
New chart series.

insert

public IChartSeries insert(int index,
                           int type)

Creates new chart series and inserts it into the collection.

Specified by:
insert in interface IChartSeriesCollection

add

public IChartSeries add(IChartDataCell cellWithSeriesName,
                        int type)

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

Specified by:
add in interface IChartSeriesCollection
Parameters:
cellWithSeriesName - Cell which contain series name.
type - 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:
Added chart series or series that already is in collection.

add

public IChartSeries add(IChartCellCollection cellsWithSeriesName,
                        int type)

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

Specified by:
add in interface IChartSeriesCollection
Parameters:
cellsWithSeriesName - Cells which contain series name.
type - 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:
Added chart series or series that already is in collection.

add

public IChartSeries add(java.lang.String name,
                        int type)

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

Specified by:
add in interface IChartSeriesCollection
Parameters:
name - Series name.
type - Type set type of series
Returns:
Added chart series.

indexOf

public int indexOf(IChartSeries value)

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

Specified by:
indexOf in interface IChartSeriesCollection
Parameters:
value - Chart series value.
Returns:
The zero-based index of the first occurrence of value within the entire CollectionBase, if found; otherwise, -1.

remove

public void remove(IChartSeries value)

Removes the specified value.

Specified by:
remove in interface IChartSeriesCollection
Parameters:
value - The value.
Throws:
System.ArgumentException - The value parameter was not found in the collection.

removeAt

public void removeAt(int index)

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

Specified by:
removeAt in interface IChartSeriesCollection
Parameters:
index - Index of a control to remove.

clear

public void clear()

Removes all controls from the collection.

Specified by:
clear in interface IChartSeriesCollection

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.


iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartSeries> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartSeries>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IChartSeries>
Specified by:
iterator in interface java.lang.Iterable<IChartSeries>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

copyTo

public void copyTo(IChartSeries[] array,
                   int index)

Copies the entire collection to the specified array.

Specified by:
copyTo in interface IGenericCollection<IChartSeries>
Parameters:
array - Target array
index - Index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface IGenericCollection<IChartSeries>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<IChartSeries>


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.