MasterSlideCollection

MasterSlideCollection class

Represents a collection of master slides.

addClone

NameDescription
addClone (MasterSlide)Adds a copy of a specified master slide to the end of the collection. Linked layout slides will be copied too.

Parameters:

NameTypeDescription
sourceMasterMasterSlideSlide to clone.

Returns: MasterSlide


getSyncRoot

NameDescription
getSyncRoot ()Returns a synchronization root. Read-only Object.

Returns: Object


get_Item

NameDescription
get_Item (int)Gets the element at the specified index. Read-only MasterSlide.

Returns: MasterSlide


insertClone

NameDescription
insertClone (int, MasterSlide)Inserts a copy of a specified master slide to specified position of the collection. Linked layout slides will be copied too.

Parameters:

NameTypeDescription
indexintIndex of new slide.
sourceMasterMasterSlideSlide to clone.

Returns: MasterSlide


isSynchronized

NameDescription
isSynchronized ()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (MasterSlide)Removes the first occurrence of a specific object from the collection.

Parameters:

NameTypeDescription
valueMasterSlideThe master slide to remove from the collection.

Returns: void


removeAt

NameDescription
removeAt (int)Removes the element at the specified index of the collection.

Parameters:

NameTypeDescription
indexintThe zero-based index of the element to remove. To avoid throwing of the PptxEditException check master’s HasDependingSlides property before.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown if the master to remove is used in presentation (its HasDependingSlides property is true).

removeUnused

NameDescription
removeUnused (boolean)Removes unused master slides.

Parameters:

NameTypeDescription
ignorePreserveFieldbooleanDetermines, whether this method should remove unused master even if its ( MasterSlide#getPreserve/ MasterSlide#setPreserve(boolean)) property is set to true.

Returns: void


size

NameDescription
size ()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int