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

# BaseSlide

## Overview

`BaseSlide` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IBaseSlide`.

Represents common data for all slide types.

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

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `name` | `String` | Read/Write | Gets or sets the name. |
| `slideId` | `int` | Read | Gets the slide id. |
| `shapes` | `IShapeCollection` | Read | Gets the shapes. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `BaseSlide()` | Creates a BaseSlide with default values. |
| `BaseSlide(name: String, slideId: int)` | Creates a BaseSlide with the given name and ID. |
| `getName()` → `String` | Returns the name. |
| `setName(name: String)` | Sets the name value. |
| `getSlideId()` → `int` | Returns the slide id. |
| `getShapes()` → `IShapeCollection` | Returns the shapes. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this slide as an IPresentationComponent |
| `getPresentation()` → `IPresentation` | Returns the presentation. |

## See Also

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