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

# IMasterSlide

## Overview

`IMasterSlide` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IBaseSlide`.

Represents a master slide in a presentation.

This interface declares 8 methods for IMasterSlide objects in Java programs.
Available methods include: `asIPresentationComponent`, `getLayoutSlides`, `getName`, `getPresentation`, `getShapes`, `getSlide`, `getSlideId`, `setName`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `layoutSlides`, `name`, `presentation`, `shapes`, `slide`, `slideId`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `layoutSlides` | `ILayoutSlideCollection` | Read | Returns the collection of layout slides belonging to this master. |
| `name` | `String` | Read/Write | Returns the name of a slide. |
| `slideId` | `int` | Read | Returns the ID of a slide. |
| `shapes` | `IShapeCollection` | Read | Returns the shapes of a slide. |
| `slide` | `IBaseSlide` | Read | Returns the parent slide. |
| `presentation` | `IPresentation` | Read | Returns the presentation containing this component. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getLayoutSlides()` → `ILayoutSlideCollection` | Returns the collection of layout slides belonging to this master. |
| `getName()` → `String` | Returns the name of a slide. |
| `setName(name: String)` | Sets the name of a slide. |
| `getSlideId()` → `int` | Returns the ID of a slide. |
| `getShapes()` → `IShapeCollection` | Returns the shapes of a slide. |
| `getSlide()` → `IBaseSlide` | Returns the parent slide. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns the base {@link IPresentationComponent} interface. |
| `getPresentation()` → `IPresentation` | Returns the presentation containing this component. |

## See Also

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