IMasterSlideCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IMasterSlideCollection extends IGenericCollection<IMasterSlide>

Represents a collection of master slides.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
remove(IMasterSlide value)Removes the first occurrence of a specific object from the collection.
removeAt(int index)Removes the element at the specified index of the collection.
removeUnused(boolean ignorePreserveField)Removes unused master slides.
addClone(IMasterSlide sourceMaster)Adds a copy of a specified master slide to the end of the collection.
insertClone(int index, IMasterSlide sourceMaster)Inserts a copy of a specified master slide to specified position of the collection.

get_Item(int index)

public abstract IMasterSlide get_Item(int index)

Gets the element at the specified index. Read-only IMasterSlide.

Parameters:

ParameterTypeDescription
indexint

Returns: IMasterSlide

remove(IMasterSlide value)

public abstract void remove(IMasterSlide value)

Removes the first occurrence of a specific object from the collection.

Parameters:

ParameterTypeDescription
valueIMasterSlideThe master slide to remove from the collection.

removeAt(int index)

public abstract void removeAt(int index)

Removes the element at the specified index of the collection.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to remove.

removeUnused(boolean ignorePreserveField)

public abstract void removeUnused(boolean ignorePreserveField)

Removes unused master slides.

Parameters:

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

addClone(IMasterSlide sourceMaster)

public abstract IMasterSlide addClone(IMasterSlide sourceMaster)

Adds a copy of a specified master slide to the end of the collection. Linked layout slides will be copied too.

Parameters:

ParameterTypeDescription
sourceMasterIMasterSlideSlide to clone.

Returns: IMasterSlide - Added slide.

insertClone(int index, IMasterSlide sourceMaster)

public abstract IMasterSlide insertClone(int index, IMasterSlide sourceMaster)

Inserts a copy of a specified master slide to specified position of the collection. Linked layout slides will be copied too.

Parameters:

ParameterTypeDescription
indexintIndex of new slide.
sourceMasterIMasterSlideSlide to clone.

Returns: IMasterSlide - Inserted master slide.