SlideCollection

Overview

SlideCollection is a class in Aspose.Slides FOSS for Python. Inherits from: BaseCollection, ISlideCollection.

Represents a collection of a slides.

This class provides 8 methods for working with SlideCollection objects in Python programs. Available methods include: add_clone, add_empty_slide, index_of, insert_clone, insert_empty_slide, remove, remove_at, to_array. All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: as_i_collection, as_i_enumerable, length.

Properties

NameTypeAccessDescription
as_i_collectionlistReadGets the as i collection.
as_i_enumerableAnyReadGets the as i enumerable.
lengthintReadReturns the number of elements.

Methods

SignatureDescription
add_clone()ISlideClone a slide and add it to the end of the collection.
insert_clone()ISlideClone a slide and insert it at a specific position.
to_array()list[ISlide]Returns a list containing all slides in the collection
add_empty_slide(layout)ISlideCreates an empty slide using the given layout and adds it to the end
insert_empty_slide(index, layout)ISlideCreates an empty slide with the layout and inserts it at the index
remove(value)Deletes the first occurrence of the specified slide from the collection
remove_at(index)
index_of(slide)int

See Also