com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class SectionCollection

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ISection addEmptySection(java.lang.String name, int index)
      Add empty section to specified position of the collection.
      ISection addSection(java.lang.String name, ISlide startedFromSlide)
      Add slides section started form specific slide.
      ISection appendEmptySection(java.lang.String name)
      Add empty section to the end of the collection.
      void clear()
      Removes all sections from the collection.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies the entire collection to the specified array.
      ISection 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(ISection section)
      Returns an index of the specified section in the collection.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> iterator()
      Returns an enumerator that iterates through the collection.
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> iteratorJava()
      Returns a java iterator for the entire collection.
      void removeSection(ISection section)
      Remove section.
      void removeSectionWithSlides(ISection section)
      Remove section and slides contained in the section.
      void reorderSectionWithSlides(ISection section, int index)
      Moves section and its slides from the collection to the specified position.
      int size()
      Gets the number of elements actually contained 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

      • addSection

        public final ISection addSection(java.lang.String name,
                                         ISlide startedFromSlide)

        Add slides section started form specific slide.

        Specified by:
        addSection in interface ISectionCollection
        Parameters:
        name - Name of the section
        startedFromSlide - First slide of section
        Returns:
        Added section.
      • appendEmptySection

        public final ISection appendEmptySection(java.lang.String name)

        Add empty section to the end of the collection.

        Specified by:
        appendEmptySection in interface ISectionCollection
        Parameters:
        name - Name of the section
        Returns:
        Added section.
      • addEmptySection

        public final ISection addEmptySection(java.lang.String name,
                                              int index)

        Add empty section to specified position of the collection.

        Specified by:
        addEmptySection in interface ISectionCollection
        Parameters:
        name - Name of the section
        index - Index of new section.
        Returns:
        Added section.
      • size

        public final int size()

        Gets the number of elements actually contained in the collection. Read-only int.

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

        public final int indexOf(ISection section)

        Returns an index of the specified section in the collection.

        Specified by:
        indexOf in interface ISectionCollection
        Parameters:
        section - Section to find.
        Returns:
        Index of a section or -1 if section not from this collection.
      • removeSectionWithSlides

        public final void removeSectionWithSlides(ISection section)

        Remove section and slides contained in the section.

        Specified by:
        removeSectionWithSlides in interface ISectionCollection
        Parameters:
        section - The section to remove from the collection.
      • removeSection

        public final void removeSection(ISection section)

        Remove section. Slides contained in the section will be merged into previous section.

        Specified by:
        removeSection in interface ISectionCollection
        Parameters:
        section - The section to remove from the collection.
      • reorderSectionWithSlides

        public final void reorderSectionWithSlides(ISection section,
                                                   int index)

        Moves section and its slides from the collection to the specified position.

        Specified by:
        reorderSectionWithSlides in interface ISectionCollection
        Parameters:
        index - Target index.
        section - Section to move.
      • clear

        public final void clear()

        Removes all sections from the collection.

        Specified by:
        clear in interface ISectionCollection
      • 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<ISection>
        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<ISection>
      • 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<ISection>
      • iterator

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

        Returns an enumerator that iterates through the collection.

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

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

        Returns a java iterator for the entire collection.

        Specified by:
        iteratorJava in interface IGenericCollection<ISection>
        Returns:
        An Iterator for the entire collection.
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.