ChartDataWorksheetCollection
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.slides.IChartDataWorksheetCollection, com.aspose.slides.IDOMObject
public final class ChartDataWorksheetCollection implements IChartDataWorksheetCollection, IDOMObject
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(); }
Methods
Method | Description |
---|---|
get_Item(int index) | Returns the worksheet by index. |
size() | Returns the count. |
getParent_Immediate() | |
iteratorJava() | Returns a java iterator for the entire collection. |
iterator() | Returns an enumerator that iterates through the collection. |
copyTo(System.Array array, int arrayIndex) | Copy to specified array. |
isSynchronized() | Returns a value indicating whether access to the collection is synchronized (thread-safe). |
getSyncRoot() | Returns a synchronization root. |
get_Item(int index)
public final IChartDataWorksheet get_Item(int index)
Returns the worksheet by index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of the worksheet in the collection. |
Returns: IChartDataWorksheet - Instance of the IChartDataWorksheet.
size()
public final int size()
Returns the count. Read-only int.
Returns: int
getParent_Immediate()
public final IDOMObject getParent_Immediate()
Returns Parent_Immediate object. Read-only IDOMObject.
Returns: com.aspose.slides.IDOMObject
iteratorJava()
public final System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iteratorJava()
Returns a java iterator for the entire collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IChartDataWorksheet> - A IGenericEnumerator that can be used to iterate through the collection.
iterator()
public final System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iterator()
Returns an enumerator that iterates through the collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IChartDataWorksheet> - A IGenericEnumerator that can be used to iterate through the collection.
copyTo(System.Array array, int arrayIndex)
public final void copyTo(System.Array array, int arrayIndex)
Copy to specified array.
Parameters:
Parameter | Type | Description |
---|---|---|
array | com.aspose.ms.System.Array | Array to copy to. |
arrayIndex | int | Index to begin copying. |
isSynchronized()
public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.
Returns: boolean
getSyncRoot()
public final Object getSyncRoot()
Returns a synchronization root. Read-only Object.
Returns: java.lang.Object