com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ILayoutSlideCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      ILayoutSlide get_Item(int index)
      Returns the layout slide by index.
      ILayoutSlide getByType(byte type)
      Returns the first layout slide of specified type.
      void remove(ILayoutSlide value)
      Removes a layout from the collection.
      void removeUnused()
      Removes unused layout slides (layout slides whose HasDependingSlides is false).
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface com.aspose.ms.System.Collections.ICollection

        copyTo, getSyncRoot, isSynchronized, size
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getByType

        ILayoutSlide getByType(byte type)

        Returns the first layout slide of specified type.

        Parameters:
        type - A type of layout slide to find.
        Returns:
        ILayoutSlide with specified type or null if no layouts found.
      • remove

        void remove(ILayoutSlide value)

        Removes a layout from the collection.

        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

        void removeUnused()

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