com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class LayoutSlideCollection

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies all elements from the collection to the specified array.
      ILayoutSlide get_Item(int index)
      Returns the layout slide by index.
      ILayoutSlide getByType(byte type)
      Returns the first layout slide of specified type.
      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<ILayoutSlide> iterator()
      Returns an enumerator that iterates through the collection.
      void remove(ILayoutSlide value)
      Removes a layout from the collection.
      void removeUnused()
      Removes unused layout slides (layout slides whose HasDependingSlides is false).
      int size()
      Returns the number of layout slides in a 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

      • size

        public final int size()

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

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

        public final ILayoutSlide getByType(byte type)

        Returns the first layout slide of specified type.

        Specified by:
        getByType in interface ILayoutSlideCollection
        Parameters:
        type - A type of layout slide to find.
        Returns:
        LayoutSlide with specified type or null if no layouts found.
      • remove

        public final void remove(ILayoutSlide value)

        Removes a layout from the collection.

        Specified by:
        remove in interface ILayoutSlideCollection
        Parameters:
        value - The layout slide to remove from the collection.


        1) To avoid throwing of the PptxEditException check layout's HasDependingSlides property before. 2) You can use also ILayoutSlide.remove() method to simplify code.

        Throws:
        PptxEditException - Thrown if layout is used in presentation (its HasDependingSlides property is true).
      • removeUnused

        public final void removeUnused()

        Removes unused layout slides (layout slides whose HasDependingSlides is false).

        Specified by:
        removeUnused in interface ILayoutSlideCollection
      • iterator

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

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ILayoutSlide>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<ILayoutSlide>
        Specified by:
        iterator in interface java.lang.Iterable<ILayoutSlide>
        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 all elements from the collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<ILayoutSlide>
        Parameters:
        array - Target array.
        index - Starting 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<ILayoutSlide>
      • 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<ILayoutSlide>
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.