public final class ChartDataWorksheetCollection extends java.lang.Object implements IChartDataWorksheetCollection
Represents the collection of worksheets of chart data workbook.
Example:Presentation pres = new Presentation(); try { IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Pie, 50, 50, 400, 500); IChartDataWorkbook workbook = chart.getChartData().getChartDataWorkbook(); for (IChartDataWorksheet worksheet : workbook.getWorksheets()) { String worksheetName = worksheet.getName(); } } finally { if (pres != null) pres.dispose(); }
Modifier and Type | Method and Description |
---|---|
void |
copyTo(com.aspose.ms.System.Array array,
int arrayIndex)
Copy to specified array.
|
IChartDataWorksheet |
get_Item(int index)
Returns the worksheet by index.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> |
iteratorJava()
Returns a java iterator for the entire collection.
|
int |
size()
Returns the count.
|
public final IChartDataWorksheet get_Item(int index)
Returns the worksheet by index.
get_Item
in interface IChartDataWorksheetCollection
index
- Index of the worksheet in the collection.public final int size()
Returns the count.
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava
in interface IGenericCollection<IChartDataWorksheet>
IGenericEnumerator
that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartDataWorksheet>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IChartDataWorksheet>
iterator
in interface java.lang.Iterable<IChartDataWorksheet>
IGenericEnumerator
that can be used to iterate through the collection.public final void copyTo(com.aspose.ms.System.Array array, int arrayIndex)
Copy to specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
array
- Array to copy to.arrayIndex
- Index to begin copying.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>