MasterSlideCollection — Aspose.Slides FOSS Java API Reference
MasterSlideCollection — Represents a collection of master slides in a presentation. Inherits from: IMasterSlideCollection, Iterable<IMasterSlide>.
Package: org.aspose.slides.foss
Properties
| Property | Type | Access | Description |
|---|---|---|---|
nextMasterFileNumber | int | Read/Write | |
nextLayoutFileNumber | int | Read/Write | |
maxMasterLayoutIdInPresentation | long | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
initInternal(IPresentation presentation, OpcPackage opcPackage, PresentationPart presentationPart, List<IMasterSlide> masterSlides) | void | Performs internal initialization for the master slide collection. |
get(int index) | IMasterSlide | |
size() | int | |
asICollection() | List<IMasterSlide> | |
asIEnumerable() | Iterable<IMasterSlide> | |
iterator() | Iterator<IMasterSlide> | |
addClone(IMasterSlide sourceMaster) | IMasterSlide | |
add(IMasterSlide master) | void | Adds a master slide to the collection. |
getNextMasterFileNumber() | int | Finds the next available master slide file number in the package. |
getNextLayoutFileNumber() | int | Finds the next available layout slide file number in the package. |
cloneMasterPart(OpcPackage sourcePackage, String sourcePartName, OpcPackage destPackage, String destPartName) | Map<String, String> | Clones a master slide part and its related resources (except layouts) from one package to another. |
cloneLayoutPart(OpcPackage sourcePackage, String sourcePartName, OpcPackage destPackage, String destPartName, String destMasterPartName) | void | Clones a layout slide part from one package to another. |
getMaxMasterLayoutIdInPresentation() | long | Finds the maximum ID across all master slide IDs and layout IDs in the presentation. |
updateMasterLayoutRelationships(OpcPackage sourcePackage, String sourceMasterPartName, String destMasterPartName, Map<String, String> layoutMapping, Map<String, String> sourceLayoutRids) | void | Updates a master slide’s relationships and XML to point to cloned layouts. |