|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.ChartCategoryCollection
public class ChartCategoryCollection
Represents collection of ChartCategory
Method Summary | |
---|---|
IChartCategory |
add(IChartDataCell chartDataCell)
If category exists in collection, return it. |
IChartCategory |
add(java.lang.Object value)
Creates new ChartCategory from value and adds it to the collection. |
void |
clear()
Removes all elements from the collection. |
void |
copyTo(IChartCategory[] array,
int index)
Copies all elements of the collection to the specified array. |
IChartCategory |
get_Item(int index)
Gets the element at the specified index. |
int |
getGroupingLevelCount()
Returns count of category grouping levels used. |
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object. |
java.lang.Object |
getSyncRoot()
Returns an object that can be used to synchronize access to the collection. |
boolean |
getUseCells()
If true then worksheet is used for storing categories (this case supports a multi-level categories). |
int |
indexOf(IChartCategory value)
Searches for the specified ChartCategory and returns the zero-based index of the first occurrence within the entire Collection. |
boolean |
isSynchronized()
Returns a value indicating whether access to the List is synchronized (thread safe). |
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartCategory> |
iterator()
Returns an enumerator that iterates through the collection. |
void |
remove(IChartCategory value)
Removes the specified value. |
void |
removeAt(int index)
Removes the element at the given index. |
void |
setUseCells(boolean value)
If true then worksheet is used for storing categories (this case supports a multi-level categories). |
int |
size()
Returns a number of elements int the collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final IChartCategory get_Item(int index)
Gets the element at the specified index.
get_Item
in interface IChartCategoryCollection
T:System.ArgumentOutOfRangeException
- index
is not a valid index in the T:System.Collections.IList
.public final boolean 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 bool
.
getUseCells
in interface IChartCategoryCollection
public final void setUseCells(boolean value)
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 bool
.
setUseCells
in interface IChartCategoryCollection
public final int getGroupingLevelCount()
Returns count of category grouping levels used.
Is more then one for multilevel categories.
Read-only int
.
getGroupingLevelCount
in interface IChartCategoryCollection
public final IChartCategory add(IChartDataCell chartDataCell)
If category exists in collection, return it. Else creates new chart category from
IChartDataCell
and adds it to the collection.
add
in interface IChartCategoryCollection
chartDataCell
- Cell used to create chart category.
public final IChartCategory add(java.lang.Object value)
Creates new ChartCategory
from value and adds it to the collection.
add
in interface IChartCategoryCollection
value
- The value.
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
IChartCategory
.
com.aspose.ms.System.InvalidOperationException
- if limit exceededpublic final int indexOf(IChartCategory value)
Searches for the specified ChartCategory
and returns the zero-based index of the first occurrence within the entire Collection.
indexOf
in interface IChartCategoryCollection
value
- Chart category.
public final void remove(IChartCategory value)
Removes the specified value.
remove
in interface IChartCategoryCollection
value
- The value.
System.ArgumentException
- The value parameter was not found in the collection.public final void removeAt(int index)
Removes the element at the given index.
removeAt
in interface IChartCategoryCollection
index
- Index of a category to remove.public final void clear()
Removes all elements from the collection.
clear
in interface IChartCategoryCollection
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartCategory> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartCategory>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IChartCategory>
iterator
in interface java.lang.Iterable<IChartCategory>
T:System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final int size()
Returns a number of elements int the collection.
Read-only int
.
size
in interface IGenericCollection<IChartCategory>
public final void copyTo(IChartCategory[] array, int index)
Copies all elements of the collection to the specified array.
copyTo
in interface IGenericCollection<IChartCategory>
array
- Target array.index
- Starting index in the array.public final boolean isSynchronized()
Returns a value indicating whether access to the List is synchronized (thread safe).
Read-only bool
.
isSynchronized
in interface IGenericCollection<IChartCategory>
public final java.lang.Object getSyncRoot()
Returns an object that can be used to synchronize access to the collection.
Read-only object
.
Returns a synchronization root.
Read-only object
.
getSyncRoot
in interface IGenericCollection<IChartCategory>
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |