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(); }
| Modifier and Type | Method and Description |
|---|---|
INotesSlide |
addNotesSlide()
Returns the notes slide for the current slide, creating one if there isn't.
|
INotesSlide |
getNotesSlide()
Returns the notes slide for the current slide.
|
void |
removeNotesSlide()
Removes notes slide of the current slide.
|
getParent_Immediatepublic final INotesSlide getNotesSlide()
Returns the notes slide for the current slide. Returns null if slide doesn't have notes slide.
Read-only INotesSlide.
getNotesSlide in interface INotesSlideManagerpublic final INotesSlide addNotesSlide()
Returns the notes slide for the current slide, creating one if there isn't.
addNotesSlide in interface INotesSlideManagerNotesSlide(getNotesSlide()) for this slide.public final void removeNotesSlide()
Removes notes slide of the current slide.
removeNotesSlide in interface INotesSlideManagerCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.