NotesSlideManager

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.INotesSlideManager

public final class NotesSlideManager extends DomObject<Slide> implements INotesSlideManager

Notes slide manager.


The following example shows how to Add Notes to specific ProwerPoint Presentation slide.
 
 // Instantiate a Presentation object that represents a presentation file
 Presentation pres = new Presentation("AccessSlides.pptx");
 try {
     // Add notes to first slide
     INotesSlideManager mgr = pres.getSlides().get_Item(0).getNotesSlideManager();
     INotesSlide noteSlide = mgr.addNotesSlide();
     noteSlide.getNotesTextFrame().setText("Your Notes");
     // Save presentation to disk
     pres.save("RemoveNotesAtSpecificSlide_out.pptx", SaveFormat.Pptx);
 } finally {
     if (pres != null) pres.dispose();
 }
 
 The following examples shows how to remove Notes from PowerPoint Presentation's specific slide.
 
 // Instantiate a Presentation object that represents a presentation file
 Presentation pres = new Presentation("AccessSlides.pptx");
 try {
     // Removing notes of first slide
     INotesSlideManager mgr = pres.getSlides().get_Item(0).getNotesSlideManager();
     mgr.removeNotesSlide();
     // Save presentation to disk
     pres.save("RemoveNotesAtSpecificSlide_out.pptx", SaveFormat.Pptx);
 } finally {
     if (pres != null) pres.dispose();
 }

Methods

MethodDescription
getNotesSlide()Returns the notes slide for the current slide.
addNotesSlide()Returns the notes slide for the current slide, creating one if there isn’t.
removeNotesSlide()Removes notes slide of the current slide.

getNotesSlide()

public final INotesSlide getNotesSlide()

Returns the notes slide for the current slide. Returns null if slide doesn’t have notes slide. Read-only INotesSlide.

Returns: INotesSlide

addNotesSlide()

public final INotesSlide addNotesSlide()

Returns the notes slide for the current slide, creating one if there isn’t.

Returns: INotesSlide - NotesSlide(#getNotesSlide.getNotesSlide) for this slide.

removeNotesSlide()

public final void removeNotesSlide()

Removes notes slide of the current slide.