com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ChartDataWorksheetCollection

  • java.lang.Object
    • com.aspose.slides.ChartDataWorksheetCollection
  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartDataWorksheet>, com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>, com.aspose.ms.System.Collections.IEnumerable<IChartDataWorksheet>, IChartDataWorksheetCollection, IGenericCollection<IChartDataWorksheet>, java.lang.Iterable<IChartDataWorksheet>


    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();
     }
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • size

        public final int size()

        Returns the count. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.

      • iteratorJava

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iteratorJava()

        Returns a java iterator for the entire collection.

        Specified by:
        iteratorJava in interface IGenericCollection<IChartDataWorksheet>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartDataWorksheet> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartDataWorksheet>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IChartDataWorksheet>
        Specified by:
        iterator in interface java.lang.Iterable<IChartDataWorksheet>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • copyTo

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int arrayIndex)

        Copy to specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
        Parameters:
        array - Array to copy to.
        arrayIndex - 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.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IChartDataWorksheet>