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

# LayoutSlideCollection

## Overview

`LayoutSlideCollection` is a class in Aspose.Slides FOSS for Java.
Inherits from: `ILayoutSlideCollection`.

Represents a collection of layout slides.

This class declares 8 methods for LayoutSlideCollection objects in Java programs.
Available methods include: `LayoutSlideCollection`, `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 |
|-----------|-------------|
| `LayoutSlideCollection()` | Creates an empty LayoutSlideCollection. |
| `LayoutSlideCollection(layouts: List<ILayoutSlide>)` | Creates a LayoutSlideCollection with the given layouts. |
| `get(index: int)` → `ILayoutSlide` | Retrieves the layout slide at the specified zero‑based index |
| `size()` → `int` | Calls size on this LayoutSlideCollection instance. |
| `asICollection()` → `List<ILayoutSlide>` | Returns the layouts as a List of ILayoutSlide |
| `asIEnumerable()` → `Iterable<ILayoutSlide>` | Returns the layouts as an Iterable of ILayoutSlide |
| `iterator()` → `Iterator<ILayoutSlide>` | Provides an Iterator to traverse the layout slides |
| `getByType(type: SlideLayoutType)` → `ILayoutSlide` | Calls getByType(type) on this LayoutSlideCollection instance. |

## See Also

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