---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/SlideCollection
---

# 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

| 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 list containing all slides in the collection |
| `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)` |  |
| `index_of(slide)` → `int` |  |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)