SlideCollection
Overview
SlideCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, ISlideCollection.
Represents a collection of a slides.
This class declares 19 methods for SlideCollection objects in Python programs.
Available methods include: __contains__, __getitem__, __iter__, __len__, add_clone, add_empty_slide, index_of, insert_clone, insert_empty_slide, remove, remove_at, to_array.
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
| Name | Type | Access | Description |
|---|---|---|---|
as_i_collection | list | Read | Gets the as i collection. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
length | int | Read | Returns the number of elements. |
Methods
| Signature | Description |
|---|---|
add_clone() → ISlide | Clone a slide and add it to the end of the collection. |
insert_clone() → ISlide | Clone a slide and insert it at a specific position. |
to_array() → list[ISlide] | returns a Python list ofISlideobjects starting atstart_indexforcount` slides |
add_empty_slide(layout) → ISlide | Creates an empty slide using the given layout and adds it to the end |
insert_empty_slide(index, layout) → ISlide | Creates 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) | Calls remove_at(index) on this SlideCollection instance. |
index_of(slide) → int | Calls index_of(slide) on this SlideCollection instance. |
__getitem__(index: int) → Slide | Calls getitem(index) on this SlideCollection instance. |
__len__() → int | Calls len on this SlideCollection instance. |
__iter__() | Calls iter on this SlideCollection instance. |
__contains__(item) → bool | Calls contains(item) on this SlideCollection instance. |
add_clone(source_slide) → ISlide | ` creates a duplicate of an existing slide and appends it to the collection |
add_clone(source_slide, section) → ISlide | Calls add_clone(source_slide, section) on this SlideCollection instance. |
add_clone(source_slide, dest_master, allow_clone_missing_layout) → ISlide | Calls add_clone(source_slide, dest_master, allow_clone_missing_layout) on this SlideCollection instance. |
insert_clone(index, source_slide) → ISlide | Clones a slide and inserts it at a specified position |
insert_clone(index, source_slide, dest_layout) → ISlide | Calls insert_clone(index, source_slide, dest_layout) on this SlideCollection instance. |
insert_clone(index, source_slide, dest_master, allow_clone_missing_layout) → ISlide | Calls insert_clone(index, source_slide, dest_master, allow_clone_missing_layout) on this SlideCollection instance. |
to_array(start_index, count) → list[ISlide] | Calls to_array(start_index, count) on this SlideCollection instance. |