com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ChartSeriesCollection

  • java.lang.Object
    • com.aspose.slides.ChartSeriesCollection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IChartSeries add(IChartCellCollection cellsWithSeriesName, int type)
      Creates new chart series from ChartCellCollection and adds it to the collection.
      IChartSeries add(IChartDataCell cellWithSeriesName, int type)
      Creates new chart series from ChartDataCell and adds it to the collection.
      IChartSeries add(int type)
      Creates new chart series and adds it to the collection.
      IChartSeries add(java.lang.String name, int type)
      Creates new chart series from value and adds it to the collection.
      void clear()
      Removes all controls from the collection.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies the entire collection to the specified array.
      IChartSeries get_Item(int index)
      Gets the element at the specified index.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      java.lang.Object getSyncRoot()
      Returns a synchronization root.
      int indexOf(IChartSeries value)
      Searches for the specified ChartSeries and returns the zero-based index of the first occurrence within the entire Collection
      IChartSeries insert(int index, int type)
      Creates new chart series and inserts it into the collection.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IChartSeries> iterator()
      Returns an enumerator that iterates through the collection.
      void remove(IChartSeries value)
      Removes the specified value.
      void removeAt(int index)
      Removes an ActiveX control stored at specified position from the collection.
      int size()
      Returns a number of objects in the collection.
      • 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

      • get_Item

        public final IChartSeries get_Item(int index)

        Gets the element at the specified index.

        Specified by:
        get_Item in interface IChartSeriesCollection
        Returns:
        The element at the specified index.
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - index is not a valid index in the IList.
      • size

        public final int size()

        Returns a number of objects in the collection. Read-only int.

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

        public final IChartSeries add(int type)

        Creates new chart series and adds it to the collection.

        Specified by:
        add in interface IChartSeriesCollection
        Parameters:
        type - Type of series
        Returns:
        New chart series.
      • add

        public final IChartSeries add(IChartDataCell cellWithSeriesName,
                                      int type)

        Creates new chart series from ChartDataCell and adds it to the collection.

        Specified by:
        add in interface IChartSeriesCollection
        Parameters:
        cellWithSeriesName - Cell which contain series name.
        type - Type set type of series


        If chart series careted from same cell already in collection then method adds nothing and returns it's index.
        Returns:
        Added chart series or series that already is in collection.
      • add

        public final IChartSeries add(IChartCellCollection cellsWithSeriesName,
                                      int type)

        Creates new chart series from ChartCellCollection and adds it to the collection.

        Specified by:
        add in interface IChartSeriesCollection
        Parameters:
        cellsWithSeriesName - Cells which contain series name.
        type - Type set type of series


        If chart series careted from same cell already in collection then method adds nothing and returns it's index.
        Returns:
        Added chart series or series that already is in collection.
      • add

        public final IChartSeries add(java.lang.String name,
                                      int type)

        Creates new chart series from value and adds it to the collection.

        Specified by:
        add in interface IChartSeriesCollection
        Parameters:
        name - Series name.
        type - Type set type of series
        Returns:
        Added chart series.
      • indexOf

        public final int indexOf(IChartSeries value)

        Searches for the specified ChartSeries and returns the zero-based index of the first occurrence within the entire Collection

        Specified by:
        indexOf in interface IChartSeriesCollection
        Parameters:
        value - Chart series value.
        Returns:
        The zero-based index of the first occurrence of value within the entire CollectionBase, if found; otherwise, -1.
      • remove

        public final void remove(IChartSeries value)

        Removes the specified value.

        Specified by:
        remove in interface IChartSeriesCollection
        Parameters:
        value - The value.
        Throws:
        com.aspose.ms.System.ArgumentException - The value parameter was not found in the collection.
      • removeAt

        public final void removeAt(int index)

        Removes an ActiveX control stored at specified position from the collection.

        Specified by:
        removeAt in interface IChartSeriesCollection
        Parameters:
        index - Index of a control to remove.
      • clear

        public final void clear()

        Removes all controls from the collection.

        Specified by:
        clear in interface IChartSeriesCollection
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.

      • iterator

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

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IChartSeries>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IChartSeries>
        Specified by:
        iterator in interface java.lang.Iterable<IChartSeries>
        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 index)

        Copies the entire collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IChartSeries>
        Parameters:
        array - Target array
        index - Index in the target array.
      • 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<IChartSeries>
      • 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<IChartSeries>