SlideCollection
General
SlideCollection is a class in Aspose.Slides FOSS for Java.
Inherits from: ISlideCollection.
SlideCollection és una classe en Aspose.Slides FOSS per a Java. És heretat de: ゚ISlideCollection⌒ .
Representa una col·lecció de diapositives en una presentació.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
nextSlideFileNumber | int | Read | Property holds the next slide file number to be assigned |
firstLayoutPartName | Optional<String> | Read | Property provides the first layout part name if one exists |
Mètodes
| Signature | Description |
|---|---|
initInternal(presentation: IPresentation, opcPackage: OpcPackage, presentationPart: PresentationPart, layoutResolver: Function<String, LayoutSlide>) | Internal initialization for the slide collection. |
get(index: int) → ISlide | |
size() → int | |
asICollection() → List<ISlide> | Returns all slides as a mutable List |
asIEnumerable() → Iterable<ISlide> | Returns an Iterable over the slides for foreach loops |
addClone(sourceSlide: ISlide) → ISlide | Clones sourceSlide with a given master and optionally clones missing layout |
addClone(sourceSlide: ISlide, destLayout: ILayoutSlide) → ISlide | |
addClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlide | |
insertClone(index: int, sourceSlide: ISlide) → ISlide | Inserts a cloned slide at index with given master and layout‑handling flag |
insertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide) → ISlide | |
insertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlide | |
toArray() → ISlide[] | Returns all slides as an ISlide array |
toArray(startIndex: int, count: int) → ISlide[] | |
addEmptySlide(layout: ILayoutSlide) → ISlide | Adds a new blank slide using the provided layout |
insertEmptySlide(index: int, layout: ILayoutSlide) → ISlide | Inserts a new blank slide at index with the given layout |
remove(value: ISlide) | Deletes the specified slide from the collection |
removeAt(index: int) | |
indexOf(slide: ISlide) → int | Returns the index of the slide or -1 if it is not present |
iterator() → Iterator<ISlide> | Provides an Iterator to traverse the slides sequentially |
addEmptySlideInternal(layout: ILayoutSlide, index: int) → ISlide | Internal implementation for adding or inserting an empty slide. |
getNextSlideFileNumber() → int | Finds the next available slide file number by scanning existing parts. |
cloneSlideInternal(sourceSlide: ISlide, index: int, destLayout: ILayoutSlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean) → ISlide | Internal 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) → String | Clones the master slide chain for a slide being cloned from another presentation. |