ISlideCollection

ISlideCollection — Aspose.Slides FOSS Java API Reference

ISlideCollection — Represents a collection of slides in a presentation.

Package: org.aspose.slides.foss


Methods

MethodReturnsDescription
get(int index)ISlideReturns the slide at the given index.
size()intReturns the number of slides.
asICollection()List<ISlide>Returns this collection as a List.
asIEnumerable()Iterable<ISlide>Returns this collection as an Iterable.
addClone(ISlide sourceSlide)ISlideAdds a clone of the specified slide to the end of the collection.
addClone(ISlide sourceSlide, ILayoutSlide destLayout)ISlideAdds a clone of the specified slide to the end of the collection, applying the specified destination layout.
addClone(ISlide sourceSlide, IMasterSlide destMaster, boolean allowCloneMissingLayout)ISlideAdds a clone of the specified slide to the end of the collection, applying the specified master slide.
insertClone(int index, ISlide sourceSlide)ISlideInserts a clone of the specified slide at the given index.
insertClone(int index, ISlide sourceSlide, ILayoutSlide destLayout)ISlideInserts a clone of the specified slide at the given index, applying the specified destination layout.
insertClone(int index, ISlide sourceSlide, IMasterSlide destMaster, boolean allowCloneMissingLayout)ISlideInserts a clone of the specified slide at the given index, applying the specified master slide.
toArray()ISlide[]Returns an array containing all slides in the collection.
toArray(int startIndex, int count)ISlide[]Returns an array of slides from the given range.
addEmptySlide(ILayoutSlide layout)ISlideAdds a new empty slide to the end of the collection with the specified layout.
insertEmptySlide(int index, ILayoutSlide layout)ISlideInserts a new empty slide at the specified index with the given layout.
remove(ISlide value)voidRemoves the first occurrence of the specified slide from the collection.
removeAt(int index)voidRemoves the slide at the specified index.
indexOf(ISlide slide)intReturns the zero-based index of the specified slide, or -1 if not found.

See Also