ILayoutSlideCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface ILayoutSlideCollection extends IGenericCollection<ILayoutSlide>

Represents a base class for collection of a layout slides.

Methods

Method Description
get_Item(int index) Returns the layout slide by index.
getByType(byte type) Returns the first layout slide of specified type.
remove(ILayoutSlide value) Removes a layout from the collection.
removeUnused() Removes unused layout slides (layout slides whose HasDependingSlides is false).

get_Item(int index)

public abstract ILayoutSlide get_Item(int index)

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

Parameters:

Parameter Type Description
index int

Returns: ILayoutSlide

getByType(byte type)

public abstract ILayoutSlide getByType(byte type)

Returns the first layout slide of specified type.

Parameters:

Parameter Type Description
type byte A type of layout slide to find.

Returns: ILayoutSlide - ILayoutSlide with specified type or null if no layouts found.

remove(ILayoutSlide value)

public abstract void remove(ILayoutSlide value)

Removes a layout from the collection.

Parameters:

Parameter Type Description
value ILayoutSlide 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. |

removeUnused()

public abstract void removeUnused()

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