While reviewing the content in PowerPoint presentations, the comments are used to write the feedback. The comments can be added against a particular word, phrase, or anything on a PPT slide. In this article, you will learn how to add comments to PowerPoint PPT slides programmatically in C#. Moreover, we will cover how to read or remove slide comments and add their replies.
To manipulate comments in PowerPoint presentations, we will use Aspose.Slides for .NET. It is a powerful API to create and manipulate PowerPoint presentations. You can either download API’s DLL or install it using NuGet.
PM> Install-Package Aspose.Slides.NET
Add Comments to PPT Slides in C#
In PowerPoint presentations, every comment is attached with a particular author. Whereas, each comment contains some additional information such as time of creation, slide where it is added, and its position. The following are the steps to add comments to a PPT slide in C#.
First, load the presentation file or create a new one using Presentation class.
Then, add a new slide or get reference of an existing slide from Presentation.Slides collection.
The following code sample shows how to add comments to PPT slides in C#.
The following is the screenshot of the comment we have added using the above code sample.
Add Comment Replies in PPT Slides in C#
Aspose.Slides also allows you to add replies to the comments. A reply itself is a comment which appears as a child of an existing comment. So let’s see how to add replies to comments in PowerPoint PPT slides in C#.
First, load the presentation file or create a new one using Presentation class.
Then, add new slide or get reference of the existing slide from Presentation.Slides collection.
Add a new author and get its reference in an object.
The following code sample shows how to add replies to comments in a PPTX presentation in C#.
The following screenshot shows the output of the above code sample.
Read Comments in PPT Slides in C#
Using Aspose.Slides, you can either read comments of a particular author or all the authors. The following are the steps to read comments in PPT slides in C#.
Load the presentation file using Presentation class.
The following code sample shows how to read comments in PPT slides in C#.
Remove Comments from PowerPoint PPT in C#
In the previous section, you have seen how to read a comment by accessing it from the comments collection. Similarly, you can remove a comment after getting its reference. The following code sample shows how to remove comments in PowerPoint presentations in C#.
Get a Free License
You can use Aspose.Slides for .NET without evaluation limitations by requesting a temporary license.
Conclusion
In this article, you have learned how to add comments in PowerPoint PPT slides in C#. Moreover, we have covered how to add replies to the comments programmatically. At the end, we have demonstrated how to read or remove comments from PPT slides. You can visit the documentation to explore more about Aspose.Slides for .NET. Also, you can post your queries to our forum.
Add or Remove Comments in PowerPoint PPT in C#
While reviewing the content in PowerPoint presentations, the comments are used to write the feedback. The comments can be added against a particular word, phrase, or anything on a PPT slide. In this article, you will learn how to add comments to PowerPoint PPT slides programmatically in C#. Moreover, we will cover how to read or remove slide comments and add their replies.
C# .NET API to Work with Comments in PowerPoint
To manipulate comments in PowerPoint presentations, we will use Aspose.Slides for .NET. It is a powerful API to create and manipulate PowerPoint presentations. You can either download API’s DLL or install it using NuGet.
Add Comments to PPT Slides in C#
In PowerPoint presentations, every comment is attached with a particular author. Whereas, each comment contains some additional information such as time of creation, slide where it is added, and its position. The following are the steps to add comments to a PPT slide in C#.
The following code sample shows how to add comments to PPT slides in C#.
The following is the screenshot of the comment we have added using the above code sample.
Add Comment Replies in PPT Slides in C#
Aspose.Slides also allows you to add replies to the comments. A reply itself is a comment which appears as a child of an existing comment. So let’s see how to add replies to comments in PowerPoint PPT slides in C#.
The following code sample shows how to add replies to comments in a PPTX presentation in C#.
The following screenshot shows the output of the above code sample.
Read Comments in PPT Slides in C#
Using Aspose.Slides, you can either read comments of a particular author or all the authors. The following are the steps to read comments in PPT slides in C#.
The following code sample shows how to read comments in PPT slides in C#.
Remove Comments from PowerPoint PPT in C#
In the previous section, you have seen how to read a comment by accessing it from the comments collection. Similarly, you can remove a comment after getting its reference. The following code sample shows how to remove comments in PowerPoint presentations in C#.
Get a Free License
You can use Aspose.Slides for .NET without evaluation limitations by requesting a temporary license.
Conclusion
In this article, you have learned how to add comments in PowerPoint PPT slides in C#. Moreover, we have covered how to add replies to the comments programmatically. At the end, we have demonstrated how to read or remove comments from PPT slides. You can visit the documentation to explore more about Aspose.Slides for .NET. Also, you can post your queries to our forum.
See Also
This entry was posted in Aspose.Slides Product Family and tagged Add Comment Reply in PPT Slides in Csharp, Add Comments in PPT Slides in Csharp, Add Comments in PowerPoint Slides in Csharp, Read Comments in PPT Slides in Csharp, Remove Comments in PPT Slides in Csharp. .