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

# ISlideCollection

## Overview

`ISlideCollection` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `Iterable<ISlide>`.

Represents a collection of slides in a presentation.

This interface declares 17 methods for ISlideCollection objects in Java programs.
Available methods include: `addClone`, `addEmptySlide`, `asICollection`, `asIEnumerable`, `get`, `indexOf`, `insertClone`, `insertEmptySlide`, `remove`, `removeAt`, `size`, `toArray`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `get(index: int)` → `ISlide` | Returns the slide at the given index. |
| `size()` → `int` | Returns the number of slides. |
| `asICollection()` → `List<ISlide>` | Returns this collection as a {@link List}. |
| `asIEnumerable()` → `Iterable<ISlide>` | Returns this collection as an {@link Iterable}. |
| `addClone(sourceSlide: ISlide)` → `ISlide` | Adds a clone of the specified slide to the end of the collection. |
| `addClone(sourceSlide: ISlide, destLayout: ILayoutSlide)` → `ISlide` | Adds a clone of the specified slide to the end of the collection, applying the specified destination layout. |
| `addClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean)` → `ISlide` | Adds a clone of the specified slide to the end of the collection, applying the specified master slide. |
| `insertClone(index: int, sourceSlide: ISlide)` → `ISlide` | Inserts a clone of the specified slide at the given index. |
| `insertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide)` → `ISlide` | Inserts a clone of the specified slide at the given index, applying the specified destination layout. |
| `insertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: boolean)` → `ISlide` | Inserts a clone of the specified slide at the given index, applying the specified master slide. |
| `toArray()` → `ISlide[]` | Returns an array containing all slides in the collection. |
| `toArray(startIndex: int, count: int)` → `ISlide[]` | Returns an array of slides from the given range. |
| `addEmptySlide(layout: ILayoutSlide)` → `ISlide` | Adds a new empty slide to the end of the collection with the specified layout. |
| `insertEmptySlide(index: int, layout: ILayoutSlide)` → `ISlide` | Inserts a new empty slide at the specified index with the given layout. |
| `remove(value: ISlide)` | Removes the first occurrence of the specified slide from the collection. |
| `removeAt(index: int)` | Removes the slide at the specified index. |
| `indexOf(slide: ISlide)` → `int` | Returns the zero-based index of the specified slide, or {@code -1} if not found. |

## See Also

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