MasterSlideCollection

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

PropertyTypeAccessDescription
nextMasterFileNumberintRead/Write
nextLayoutFileNumberintRead/Write
maxMasterLayoutIdInPresentationlongRead/Write

Methods

MethodReturnsDescription
initInternal(IPresentation presentation, OpcPackage opcPackage, PresentationPart presentationPart, List<IMasterSlide> masterSlides)voidPerforms 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)voidAdds 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(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)voidClones 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(OpcPackage sourcePackage, String sourceMasterPartName, String destMasterPartName, Map<String, String> layoutMapping, Map<String, String> sourceLayoutRids)voidUpdates a master slide’s relationships and XML to point to cloned layouts.

See Also