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

# MasterLayoutSlideCollection

## Overview

`MasterLayoutSlideCollection` is a class in Aspose.Slides FOSS for Java.
Inherits from: `LayoutSlideCollection`, `IMasterLayoutSlideCollection`.

Represents a collection of all layout slides of the defined master slide.

This class declares 10 methods for MasterLayoutSlideCollection objects in Java programs.
Available methods include: `LayoutSlideCollection`, `MasterLayoutSlideCollection`, `asICollection`, `asIEnumerable`, `get`, `getByType`, `iterator`, `size`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `MasterLayoutSlideCollection()` | Creates an empty MasterLayoutSlideCollection. |
| `MasterLayoutSlideCollection(layouts: List<ILayoutSlide>)` | Creates a MasterLayoutSlideCollection with the given layouts. |
| `get(index: int)` → `ILayoutSlide` | Retrieves the ILayoutSlide at the specified zero‑based index |
| `size()` → `int` | Calls size on this MasterLayoutSlideCollection instance. |
| `asICollection()` → `List<ILayoutSlide>` | Calls asICollection on this MasterLayoutSlideCollection instance. |
| `asIEnumerable()` → `Iterable<ILayoutSlide>` | Returns the layouts as an Iterable for foreach loops |
| `iterator()` → `Iterator<ILayoutSlide>` | Provides an Iterator over the ILayoutSlide elements |
| `getByType(type: SlideLayoutType)` → `ILayoutSlide` | Returns the first ILayoutSlide matching the specified SlideLayoutType |
| `LayoutSlideCollection()` | Creates an empty LayoutSlideCollection. |
| `LayoutSlideCollection(layouts: List<ILayoutSlide>)` | Creates a LayoutSlideCollection with the given layouts. |

## See Also

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