Table of Contents

Class CommentAuthorExamples

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

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

public class CommentAuthorExamples
Inheritance
CommentAuthorExamples
Inherited Members

Constructors

CommentAuthorExamples()

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

Methods

AddCommentAuthor(string, string)

Method to add new comment author.

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

RemoveCommentAuthor(string, string)

Method to remove comment authors.

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