com.aspose.slides
Interface ILayoutSlideCollection

All Superinterfaces:
com.aspose.ms.System.Collections.IEnumerable<ILayoutSlide>, IGenericCollection<ILayoutSlide>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ILayoutSlide>, java.lang.Iterable<ILayoutSlide>
All Known Subinterfaces:
IGlobalLayoutSlideCollection, IMasterLayoutSlideCollection
All Known Implementing Classes:
GlobalLayoutSlideCollection, LayoutSlideCollection, MasterLayoutSlideCollection

public interface ILayoutSlideCollection
extends IGenericCollection<ILayoutSlide>

Represents a base class for collection of a layout slides.


Method Summary
 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.slides.IGenericCollection
copyTo, getSyncRoot, isSynchronized, size
 
Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable
iterator
 

Method Detail

get_Item

ILayoutSlide get_Item(int index)

Returns the layout slide by index. Read-only ILayoutSlide.


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.
Throws:
PptxEditException - Thrown if layout is used in presentation (its HasDependingSlides property is true).


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


removeUnused

void removeUnused()

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



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.