LayoutSlideCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ILayoutSlideCollection, com.aspose.slides.IDOMObject

public class LayoutSlideCollection implements ILayoutSlideCollection, IDOMObject

Represents a base class for collection of a layout slides.

Methods

MethodDescription
size()Returns the number of layout slides in a collection.
get_Item(int index)Returns the layout slide by index.
getByType(byte type)Returns the first layout slide of specified type.
remove(ILayoutSlide value)Removes a layout from the collection.
removeUnused()Removes unused layout slides (layout slides whose HasDependingSlides is false).
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.
copyTo(System.Array array, int index)Copies all elements from the collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.
getParent_Immediate()

size()

public final int size()

Returns the number of layout slides in a collection. Read-only int.

Returns: int

get_Item(int index)

public final ILayoutSlide get_Item(int index)

Returns the layout slide by index. Read-only LayoutSlide.

Parameters:

ParameterTypeDescription
indexint

Returns: ILayoutSlide

getByType(byte type)

public final ILayoutSlide getByType(byte type)

Returns the first layout slide of specified type.

Parameters:

ParameterTypeDescription
typebyteA type of layout slide to find.

Returns: ILayoutSlide - LayoutSlide with specified type or null if no layouts found.

remove(ILayoutSlide value)

public final void remove(ILayoutSlide value)

Removes a layout from the collection.

Parameters:

ParameterTypeDescription
valueILayoutSlideThe layout slide to remove from the collection.

  1. To avoid throwing of the PptxEditException check layout’s HasDependingSlides property before. 2) You can use also ILayoutSlide.remove method to simplify code. |

removeUnused()

public final void removeUnused()

Removes unused layout slides (layout slides whose HasDependingSlides is false).

iterator()

public final System.Collections.Generic.IGenericEnumerator<ILayoutSlide> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ILayoutSlide> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ILayoutSlide> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ILayoutSlide> - An java.util.Iterator for the entire collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies all elements from the collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting index in the target array.

isSynchronized()

public final boolean isSynchronized()

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

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject