com.aspose.slides
Class MasterSlideExCollection

java.lang.Object
  extended by com.aspose.slides.MasterSlidesEx
      extended by com.aspose.slides.MasterSlideExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<MasterSlideEx>, com.aspose.ms.System.Collections.IEnumerable<MasterSlideEx>, java.lang.Iterable<MasterSlideEx>

public final class MasterSlideExCollection
extends MasterSlidesEx
implements com.aspose.ms.System.Collections.ICollection<MasterSlideEx>

Represents a collection of master slides.


Method Summary
 int addClone(MasterSlideEx slide)
           Adds a copy of a specified slide to the end of the collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 MasterSlideEx get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 void insertClone(int index, MasterSlideEx slide)
           Inserts a copy of a specified slide to specified position of the collection.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator<MasterSlideEx> iterator()
           Returns an enumerator for the entire collection.
 void remove(MasterSlideEx value)
           Removes the first occurrence of a specific object from the collection.
 void removeAt(int index)
           Removes the element at the specified index of the collection.
 void removeUnused(boolean ignorePreserveField)
           Removes unused master slides.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<MasterSlideEx>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe).

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<MasterSlideEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<MasterSlideEx>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<MasterSlideEx>

getCount

public int getCount()
Description copied from class: MasterSlidesEx

Gets the number of elements actually contained in the collection. Read-only int.

Overrides:
getCount in class MasterSlidesEx

get_Item

public MasterSlideEx get_Item(int index)
Description copied from class: MasterSlidesEx

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

Overrides:
get_Item in class MasterSlidesEx

remove

public void remove(MasterSlideEx value)
Description copied from class: MasterSlidesEx

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

Overrides:
remove in class MasterSlidesEx
Parameters:
value - The master slide to remove from the collection.

removeAt

public void removeAt(int index)
Description copied from class: MasterSlidesEx

Removes the element at the specified index of the collection.

Overrides:
removeAt in class MasterSlidesEx
Parameters:
index - The zero-based index of the element to remove.

removeUnused

public void removeUnused(boolean ignorePreserveField)
Description copied from class: MasterSlidesEx

Removes unused master slides.

Overrides:
removeUnused in class MasterSlidesEx
Parameters:
ignorePreserveField - Determines, whether this method should remove unused master even if its MasterSlideEx.Preserve property is set to true.

addClone

public int addClone(MasterSlideEx slide)
Description copied from class: MasterSlidesEx

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

Overrides:
addClone in class MasterSlidesEx
Parameters:
slide - Slide to clone.
Returns:
Index of new slide.

insertClone

public void insertClone(int index,
                        MasterSlideEx slide)
Description copied from class: MasterSlidesEx

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

Overrides:
insertClone in class MasterSlidesEx
Parameters:
index - Index of new slide.
slide - Slide to clone.

iterator

public com.aspose.ms.System.Collections.IEnumerator<MasterSlideEx> iterator()
Description copied from class: MasterSlidesEx

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<MasterSlideEx>
Specified by:
iterator in interface java.lang.Iterable<MasterSlideEx>
Overrides:
iterator in class MasterSlidesEx
Returns:
An IEnumerator for the entire collection.