LayoutSlideCollection

LayoutSlideCollection class

Represents a base class for collection of a layout slides.

getByType

NameDescription
getByType (byte)Returns the first layout slide of specified type.

Parameters:

NameTypeDescription
typebyteA type of layout slide to find.

Returns: LayoutSlide


getSyncRoot

NameDescription
getSyncRoot ()Returns a synchronization root. Read-only Object.

Returns: Object


get_Item

NameDescription
get_Item (int)Returns the layout slide by index. Read-only LayoutSlide.

Returns: LayoutSlide


isSynchronized

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

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (LayoutSlide)Removes a layout from the collection.

Parameters:

NameTypeDescription
valueLayoutSlideThe 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 function to simplify code.

Error

ErrorCondition
PptxEditExceptionThrown if layout is used in presentation (its HasDependingSlides property is true).

removeUnused

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

size

NameDescription
size ()Returns the number of layout slides in a collection. Read-only int.

Returns: int