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

# IMasterSlideCollection

## Overview

`IMasterSlideCollection` is an interface in Aspose.Slides FOSS for Java.

Represents a collection of master slides.

This interface declares 5 methods for IMasterSlideCollection objects in Java programs.
Available methods include: `addClone`, `asICollection`, `asIEnumerable`, `get`, `size`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `size()` → `int` | Returns the number of master slides in the collection. |
| `get(index: int)` → `IMasterSlide` | Returns the master slide at the given index. |
| `asICollection()` → `List<IMasterSlide>` | Returns this collection as an unmodifiable {@link List}. |
| `asIEnumerable()` → `Iterable<IMasterSlide>` | Returns this collection as an {@link Iterable}. |
| `addClone(sourceMaster: IMasterSlide)` → `IMasterSlide` | Adds a clone of the specified master slide to the collection. |

## See Also

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