Table of Contents

Class NotesExamples

Namespace
FileFormat.Slides.Examples
Assembly
FileFormat.Slides.Examples.dll

Provides C# code examples for creating, reading, and removing notes in a slide of a PowerPoint presentations using the FileFormat.Slides library.

public class NotesExamples
Inheritance
NotesExamples
Inherited Members

Constructors

NotesExamples()

Initializes a new instance of the CommentExamples class. Prepares the directory 'Presentations/New' for storing or loading PowerPoint(PPT or PPTX) presentations at the root of the project. If the directory doesn't exist, it is created. If it already exists, existing files are deleted, and the directory is cleaned up.

public NotesExamples()

Methods

CreateNotesInASlide(string, string)

Creates notes in a slide of a PowerPoint presentation.

public void CreateNotesInASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

ExportNotesToTextFile(string, string)

Export all notes of presentation to a text file.

public void ExportNotesToTextFile(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.

RemoveNotesFromASlide(string, string)

Remove notes from a slide.

public void RemoveNotesFromASlide(string documentDirectory = "../../../Presentations/Existing", string filename = "test.pptx")

Parameters

documentDirectory string

The directory where the PowerPoint presentation is located. Default is 'Presentations/Existing'.

filename string

The name of the PowerPoint file. Default is 'test.pptx'.