Table of Contents

Class CommentExamples

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

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

public class CommentExamples
Inheritance
CommentExamples
Inherited Members

Constructors

CommentExamples()

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 CommentExamples()

Methods

AddCommentWithExistingCommentAuthor(string, string)

Add comment with new comment author.

public void AddCommentWithExistingCommentAuthor(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'.

CreateCommentInASlide(string, string)

Creates comment in a slide of a PowerPoint presentation.

public void CreateCommentInASlide(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'.

RemoveACommentFromASlide(string, string)

Remove a comment from a slide.

public void RemoveACommentFromASlide(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'.