com.aspose.slides
Class ChartCategoryExCollection

java.lang.Object
  extended by com.aspose.ms.System.Collections.CollectionBase
      extended by com.aspose.slides.ChartCategoryExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.Collections.IList, java.lang.Iterable

public class ChartCategoryExCollection
extends com.aspose.ms.System.Collections.CollectionBase

Represents collection of ChartCategoryEx


Method Summary
 int add(ChartDataCell chartDataCell)
           Creates new chart category from ChartDataCell and adds it to the collection.
 int addItem(java.lang.Object value)
           Creates new ChartCategoryEx from value and adds it to the collection.
 ChartCategoryEx get_Item(int index)
           Gets the element at the specified index.
 int indexOf(ChartCategoryEx value)
           Searches for the specified ChartCategoryEx and returns the zero-based index of the first occurrence within the entire Collection
 void remove(ChartCategoryEx value)
           Removes the specified value.
 
Methods inherited from class com.aspose.ms.System.Collections.CollectionBase
clear, contains, copyTo, getCapacity, getSyncRoot, indexOf, insertItem, isFixedSize, isReadOnly, isSynchronized, iterator, removeAt, removeItem, set_Item, setCapacity, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public ChartCategoryEx get_Item(int index)

Gets the element at the specified index.

Specified by:
get_Item in interface com.aspose.ms.System.Collections.IList
Overrides:
get_Item in class com.aspose.ms.System.Collections.CollectionBase
Returns:
The element at the specified index.
Throws:
T:System.ArgumentOutOfRangeException - index is not a valid index in the T:System.Collections.IList.

add

public int add(ChartDataCell chartDataCell)

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

Parameters:
chartDataCell - Cell used to create chart category.
Returns:
Index of new chart category.

addItem

public int addItem(java.lang.Object value)

Creates new ChartCategoryEx from value and adds it to the collection.

Specified by:
addItem in interface com.aspose.ms.System.Collections.IList
Overrides:
addItem in class com.aspose.ms.System.Collections.CollectionBase
Parameters:
value - The value.


This method adds worksheet with name AUTO_DATA and adds all values there. If you use ChartDataCellFactory to add or edit cell values, be sure that you do not use this worksheet Maximum number of values added using this method must not exceed 16711680

Returns:
Index of a new added ChartDataCell.
Throws:
InvalidOperationException - if limit exceeded

indexOf

public int indexOf(ChartCategoryEx value)

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

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

remove

public void remove(ChartCategoryEx value)

Removes the specified value.

Parameters:
value - The value.
Throws:
System.ArgumentException - The value parameter was not found in the collection.