public class LayoutSlideCollection extends java.lang.Object implements ILayoutSlideCollection
Represents a base class for collection of a layout slides.
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
ILayoutSlide |
get_Item(int index)
Returns the layout slide by index.
|
ILayoutSlide |
getByType(byte type)
Returns the first layout slide of specified type.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ILayoutSlide> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ILayoutSlide> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
remove(ILayoutSlide value)
Removes a layout from the collection.
|
void |
removeUnused()
Removes unused layout slides (layout slides whose HasDependingSlides is false).
|
int |
size()
Returns the number of layout slides in a collection.
|
public final int size()
Returns the number of layout slides in a collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<ILayoutSlide>public final ILayoutSlide get_Item(int index)
Returns the layout slide by index.
Read-only LayoutSlide.
get_Item in interface ILayoutSlideCollectionpublic final ILayoutSlide getByType(byte type)
Returns the first layout slide of specified type.
getByType in interface ILayoutSlideCollectiontype - A type of layout slide to find.LayoutSlide with specified type or null if no layouts found.public final void remove(ILayoutSlide value)
Removes a layout from the collection.
remove in interface ILayoutSlideCollectionvalue - The layout slide to remove from the collection.
ILayoutSlide.remove() method to simplify code.
PptxEditException - Thrown if layout is used in presentation (its HasDependingSlides property is true).public final void removeUnused()
Removes unused layout slides (layout slides whose HasDependingSlides is false).
removeUnused in interface ILayoutSlideCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ILayoutSlide> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ILayoutSlide>iterator in interface com.aspose.ms.System.Collections.IEnumerable<ILayoutSlide>iterator in interface java.lang.Iterable<ILayoutSlide>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ILayoutSlide> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<ILayoutSlide>Iterator for the entire collection.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<ILayoutSlide>array - Target array.index - Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<ILayoutSlide>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<ILayoutSlide>public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.