Slide — Aspose.Slides FOSS for Java API Reference

The Slide class represents a single slide in a presentation. It implements ISlide and extends BaseSlide.

Package: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class Slide extends BaseSlide implements ISlide

Inheritance

BaseSlide -> Slide


Properties

PropertyTypeAccessDescription
getShapes()IShapeCollectionReadCollection of shapes on this slide.
getIndex()intReadZero-based index of this slide.
getSlideNumber() / setSlideNumber(int)intRead/WriteThe slide number.
getSlideId()intReadUnique slide identifier.
getName() / setName(String)StringRead/WriteName of the slide.
isHidden() / setHidden(boolean)booleanRead/WriteWhether the slide is hidden.
getLayoutSlide() / setLayoutSlide(ILayoutSlide)ILayoutSlideRead/WriteThe layout slide applied to this slide.
getNotesSlideManager()INotesSlideManagerReadManager for the notes slide.
getPresentation()IPresentationReadParent presentation.

Methods

getSlideComments(ICommentAuthor author)

Returns comments on this slide, optionally filtered by author.

ParameterTypeDescription
authorICommentAuthorFilter by author, or null for all.

Returns: IComment[]


Usage Examples

Access Slide Shapes

import org.aspose.slides.foss.*;

Presentation prs = new Presentation("deck.pptx");
ISlide slide = prs.getSlides().get(0);
System.out.println("Shape count: " + slide.getShapes().size());

Hide a Slide

ISlide slide = prs.getSlides().get(1);
slide.setHidden(true);
prs.save("hidden.pptx", SaveFormat.PPTX);

See Also