|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.MasterSlideCollection
public final class MasterSlideCollection
Represents a collection of master slides.
Method Summary | |
---|---|
IMasterSlide |
addClone(IMasterSlide sourceMaster)
Adds a copy of a specified master slide to the end of the collection. |
void |
copyTo(IMasterSlide[] array,
int index)
Copies all elements from the collection to the specified array. |
IMasterSlide |
get_Item(int index)
Gets the element at the specified index. |
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object. |
java.lang.Object |
getSyncRoot()
Returns a synchronization root. |
IMasterSlide |
insertClone(int index,
IMasterSlide sourceMaster)
Inserts a copy of a specified master 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.Generic.IGenericEnumerator<IMasterSlide> |
iterator()
Returns an enumerator that iterates through the collection. |
void |
remove(IMasterSlide 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()
Gets the number of elements actually contained in the collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
Gets the number of elements actually contained in the collection.
Read-only int
.
size
in interface IGenericCollection<IMasterSlide>
public IMasterSlide get_Item(int index)
Gets the element at the specified index.
Read-only MasterSlide
.
get_Item
in interface IMasterSlideCollection
public void remove(IMasterSlide value)
Removes the first occurrence of a specific object from the collection.
remove
in interface IMasterSlideCollection
value
- The master slide to remove from the collection.public void removeAt(int index)
Removes the element at the specified index of the collection.
removeAt
in interface IMasterSlideCollection
index
- The zero-based index of the element to remove.
PptxEditException
- Thrown if the master to remove is used in presentation (its HasDependingSlides property is true).public void removeUnused(boolean ignorePreserveField)
Removes unused master slides.
removeUnused
in interface IMasterSlideCollection
ignorePreserveField
- Determines, whether this method should remove unused master even if its MasterSlide.Preserve
property is set to true.public 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.
addClone
in interface IMasterSlideCollection
sourceMaster
- Slide to clone.
public 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.
insertClone
in interface IMasterSlideCollection
index
- Index of new slide.sourceMaster
- Slide to clone.
public void copyTo(IMasterSlide[] array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface IGenericCollection<IMasterSlide>
array
- Target array.index
- Starting index in the target array.public boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface IGenericCollection<IMasterSlide>
public java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface IGenericCollection<IMasterSlide>
public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IMasterSlide> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IMasterSlide>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IMasterSlide>
iterator
in interface java.lang.Iterable<IMasterSlide>
T:System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |