public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Slides_Presentations_Notes(); // ExStart:RemoveNotesAtSpecificSlide // Instantiate a Presentation object that represents a presentation file Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx"); // Removing notes of first slide INotesSlideManager mgr = presentation.Slides[0].NotesSlideManager; mgr.RemoveNotesSlide(); // ExEnd:RemoveNotesAtSpecificSlide // Save presentation to disk presentation.Save(dataDir + "RemoveNotesAtSpecificSlide_out.pptx", SaveFormat.Pptx); }
public static void Run() { //ExStart:RemoveNotesFromAllSlides // The path to the documents directory. string dataDir = RunExamples.GetDataDir_Slides_Presentations_Notes(); // Instantiate a Presentation object that represents a presentation file Presentation presentation = new Presentation(dataDir + "AccessSlides.pptx"); // Removing notes of all slides INotesSlideManager mgr = null; for (int i = 0; i < presentation.Slides.Count; i++) { mgr = presentation.Slides[i].NotesSlideManager; mgr.RemoveNotesSlide(); } // Save presentation to disk presentation.Save(dataDir + "RemoveNotesFromAllSlides_out.pptx", SaveFormat.Pptx); //ExEnd:RemoveNotesFromAllSlides }