ChartCategoryCollection
ChartCategoryCollection class
Represents collection of ChartCategory
add
Name | Description |
---|---|
add (ChartDataCell) | If category exists in collection, return it. Else creates new chart category from IChartDataCell and adds it to the collection. |
Parameters:
Name | Type | Description |
---|---|---|
chartDataCell | ChartDataCell | Cell used to create chart category. |
Returns: ChartCategory
add
Name | Description |
---|---|
add (Object) | Creates new ChartCategory from value and adds it to the collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | Object | The value. This method adds worksheet with name AUTO_DATA and adds all values there. If you use ChartDataWorkbook 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: ChartCategory
Exception
Error | Condition |
---|---|
InvalidOperationException | if limit exceeded |
clear
Name | Description |
---|---|
clear () | Removes all elements from the collection. |
Returns: void
getGroupingLevelCount
Name | Description |
---|---|
getGroupingLevelCount () | Returns count of category grouping levels used. Is more then one for multilevel categories. Read-only int. |
Returns: int
getSyncRoot
Name | Description |
---|---|
getSyncRoot () | Returns an object that can be used to synchronize access to the collection. Read-only Object. Returns a synchronization root. Read-only Object. |
Returns: Object
getUseCells
Name | Description |
---|---|
getUseCells () | If true then worksheet is used for storing categories (this case supports a multi-level categories). If false then worksheet is NOT used for storing values (and this case doesn’t support a multi-level categories). Read/write boolean. |
Returns: boolean
get_Item
Name | Description |
---|---|
get_Item (int) | Gets the element at the specified index. |
Returns: ChartCategory
Exception
Error | Condition |
---|---|
ArgumentOutOfRangeException | index is not a valid index in the IList. |
indexOf
Name | Description |
---|---|
indexOf (ChartCategory) | Searches for the specified ChartCategory and returns the zero-based index of the first occurrence within the entire Collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | ChartCategory | Chart category. |
Returns: int
isSynchronized
Name | Description |
---|---|
isSynchronized () | Returns a value indicating whether access to the List is synchronized (thread safe). Read-only boolean. |
Returns: boolean
iterator
Name | Description |
---|---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
Name | Description |
---|---|
remove (ChartCategory) | Removes the specified value. |
Parameters:
Name | Type | Description |
---|---|---|
value | ChartCategory | The value. |
Returns: void
Exception
Error | Condition |
---|---|
ArgumentException | The value parameter was not found in the collection. |
removeAt
Name | Description |
---|---|
removeAt (int) | Removes the element at the given index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | Index of a category to remove. |
Returns: void
setUseCells
Name | Description |
---|---|
setUseCells (boolean) | If true then worksheet is used for storing categories (this case supports a multi-level categories). If false then worksheet is NOT used for storing values (and this case doesn’t support a multi-level categories). Read/write boolean. |
Returns: void
size
Name | Description |
---|---|
size () | Returns a number of elements int the collection. Read-only int. |
Returns: int