MasterSlideCollection

Overview

MasterSlideCollection is a class in Aspose.Slides FOSS for Java. Inherits from: IMasterSlideCollection, Iterable<IMasterSlide>.

Represents a collection of master slides in a presentation.

This class declares 15 methods for MasterSlideCollection objects in Java programs. Available methods include: MasterSlideCollection, add, addClone, asICollection, asIEnumerable, cloneLayoutPart, cloneMasterPart, get, getMaxMasterLayoutIdInPresentation, getNextLayoutFileNumber, getNextMasterFileNumber, initInternal, and 3 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: maxMasterLayoutIdInPresentation, nextLayoutFileNumber, nextMasterFileNumber.

Properties

NameTypeAccessDescription
nextMasterFileNumberintReadFinds the next available master slide file number in the package.
nextLayoutFileNumberintReadFinds the next available layout slide file number in the package.
maxMasterLayoutIdInPresentationlongReadFinds the maximum ID across all master slide IDs and layout IDs in the presentation.

Methods

SignatureDescription
MasterSlideCollection()Creates an empty MasterSlideCollection.
initInternal(presentation: IPresentation, opcPackage: OpcPackage, presentationPart: PresentationPart, masterSlides: List<IMasterSlide>)Performs internal initialization for the master slide collection.
get(index: int) → IMasterSlideCalls get(index) on this MasterSlideCollection instance.
size() → intCalls size on this MasterSlideCollection instance.
asICollection() → List<IMasterSlide>Returns the master slides as a List
asIEnumerable() → Iterable<IMasterSlide>Calls asIEnumerable on this MasterSlideCollection instance.
iterator() → Iterator<IMasterSlide>Returns an iterator over the master slides
addClone(sourceMaster: IMasterSlide) → IMasterSlideCreates a clone of the given master slide and adds it to the collection
add(master: IMasterSlide)Adds a master slide to the collection.
getNextMasterFileNumber() → intFinds the next available master slide file number in the package.
getNextLayoutFileNumber() → intFinds the next available layout slide file number in the package.
cloneMasterPart(sourcePackage: OpcPackage, sourcePartName: String, destPackage: OpcPackage, destPartName: String) → Map<String, String>Clones a master slide part and its related resources (except layouts) from one package to another.
cloneLayoutPart(sourcePackage: OpcPackage, sourcePartName: String, destPackage: OpcPackage, destPartName: String, destMasterPartName: String)Clones a layout slide part from one package to another.
getMaxMasterLayoutIdInPresentation() → longFinds the maximum ID across all master slide IDs and layout IDs in the presentation.
updateMasterLayoutRelationships(sourcePackage: OpcPackage, sourceMasterPartName: String, destMasterPartName: String, layoutMapping: Map<String, String>, sourceLayoutRids: Map<String, String>)Updates a master slide’s relationships and XML to point to cloned layouts.

See Also

 English