NotesSlideManager

NotesSlideManager class

Notes slide manager.

public sealed class NotesSlideManager : DomObject<Slide>, INotesSlideManager

Properties

NameDescription
NotesSlide { get; }Returns the notes slide for the current slide. Returns null if slide doesn’t have notes slide. Read-only INotesSlide.

Methods

NameDescription
AddNotesSlide()Returns the notes slide for the current slide, creating one if there isn’t.
RemoveNotesSlide()Removes notes slide of the current slide.

Examples

The following example shows how to Add Notes to specific ProwerPoint Presentation slide.

[C#]
	// Instantiate a Presentation object that represents a presentation file
	using(Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx")) {
	  // Add notes to first slide
	  INotesSlideManager mgr = presentation.Slides[0].NotesSlideManager;
	  INotesSlide noteSlide = mgr.AddNotesSlide();
	  noteSlide.NotesTextFrame.Text = "Your Notes";
	  // Save presentation to disk
	  presentation.Save(dataDir + "RemoveNotesAtSpecificSlide_out.pptx", SaveFormat.Pptx);
	}

The following examples shows how to remove Notes from PowerPoint Presentation’s specific slide.

[C#]
	// Instantiate a Presentation object that represents a presentation file
	using(Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx")) {
	  // Removing notes of first slide
	  INotesSlideManager mgr = presentation.Slides[0].NotesSlideManager;
	  mgr.RemoveNotesSlide();
	  // Save presentation to disk
	  presentation.Save(dataDir + "RemoveNotesAtSpecificSlide_out.pptx", SaveFormat.Pptx);
	}

See Also