SlideCollection

Overview

SlideCollection is a class in Aspose.Slides FOSS for Java. Inherits from: ISlideCollection.

Represents a collection of slides in a presentation.

This class declares 27 methods for SlideCollection objects in Java programs. Available methods include: addClone, addEmptySlide, addEmptySlideInternal, asICollection, asIEnumerable, cloneMasterChainForSlide, cloneSlideInternal, findLayoutByType, findLayoutFromLayoutSlides, findMatchingLayout, get, getFirstLayoutPartName, and 10 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: firstLayoutPartName, nextSlideFileNumber.

Properties

NameTypeAccessDescription
nextSlideFileNumberintReadFinds the next available slide file number by scanning existing parts.
firstLayoutPartNameOptional<String>ReadReturns the first available layout part name in the destination presentation.

Methods

SignatureDescription
initInternal(presentation: IPresentation, opcPackage: OpcPackage, presentationPart: PresentationPart, layoutResolver: Function<String, LayoutSlide>)Internal initialization for the slide collection.
get(index: int) → ISlideCalls get(index) on this SlideCollection instance.
size() → intCalls size on this SlideCollection instance.
asICollection() → List<ISlide>Returns all slides as a List
asIEnumerable() → Iterable<ISlide>Returns an Iterable over the slides
addClone(sourceSlide: ISlide) → ISlideCreates a copy of sourceSlide on destMaster, optionally cloning missing layout
addClone(sourceSlide: ISlide, destLayout: ILayoutSlide) → ISlideCalls addClone(sourceSlide, destLayout) on this SlideCollection instance.
addClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlideCalls addClone(sourceSlide, destMaster, allowCloneMissingLayout) on this SlideCollection instance.
insertClone(index: int, sourceSlide: ISlide) → ISlideInserts a cloned sourceSlide at index on destMaster with layout‑missing flag
insertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide) → ISlideCalls insertClone(index, sourceSlide, destLayout) on this SlideCollection instance.
insertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlideCalls insertClone(index, sourceSlide, destMaster, allowCloneMissingLayout) on this SlideCollection instance.
toArray() → ISlide[]Calls toArray on this SlideCollection instance.
toArray(startIndex: int, count: int) → ISlide[]Calls toArray(startIndex, count) on this SlideCollection instance.
addEmptySlide(layout: ILayoutSlide) → ISlideCreates a new empty slide using the specified layout
insertEmptySlide(index: int, layout: ILayoutSlide) → ISlideCalls insertEmptySlide(index, layout) on this SlideCollection instance.
remove(value: ISlide)Deletes the specified slide from the collection
removeAt(index: int)Deletes the slide at the specified zero‑based position and shifts subsequent slides
indexOf(slide: ISlide) → intCalls indexOf(slide) on this SlideCollection instance.
iterator() → Iterator<ISlide>Calls iterator on this SlideCollection instance.
addEmptySlideInternal(layout: ILayoutSlide, index: int) → ISlideInternal implementation for adding or inserting an empty slide.
getNextSlideFileNumber() → intFinds the next available slide file number by scanning existing parts.
cloneSlideInternal(sourceSlide: ISlide, index: int, destLayout: ILayoutSlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlideInternal implementation for cloning a slide.
findMatchingLayout(sourceSlide: ISlide, destMaster: IMasterSlide, allowClone: boolean) → Optional<String>Finds a matching layout in the destination master for the source slide.
findLayoutByType(sourceLayout: ILayoutSlide) → Optional<String>Finds a layout in the destination presentation matching the source layout type.
findLayoutFromLayoutSlides(sourceLayout: ILayoutSlide) → Optional<String>Finds a matching layout by name using the presentation’s layout slides.
getFirstLayoutPartName() → Optional<String>Returns the first available layout part name in the destination presentation.
cloneMasterChainForSlide(sourceSlide: ISlide, sourceLayout: ILayoutSlide) → StringClones the master slide chain for a slide being cloned from another presentation.

See Also

 English