Aspose.Slides.Examples.CSharp.Slides.Notes.RemoveNotesAtSpecificSlide.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        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);
        }
    }
RemoveNotesAtSpecificSlide