Skip to content

Commit e2ca1ea

Browse files
Modify description for annotations comments feature
Updated the description to reflect the addition of comments or replies to annotations in the Syncfusion .NET MAUI PDF Viewer.
1 parent 2b8b1a1 commit e2ca1ea

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Document-Processing/PDF/PDF-Viewer/maui/Annotations-Comment.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: Comments in .NET MAUI PDF Viewer | Syncfusion
4-
description: Learn here all about how to add liquid glass effect for Syncfusion<sup>®</sup> .NET MAUI PDF Viewer (SfPdfViewer) control.
4+
description: Learn here all about how to add comments or replies to annotations in Syncfusion<sup>®</sup> .NET MAUI PDF Viewer (SfPdfViewer) control.
55
platform: document-processing
66
control: SfPdfViewer
77
documentation: ug
@@ -72,6 +72,22 @@ Follow these steps to add comments or replies :
7272
you can add comments or replies to existing annotations programmatically by accessing the specific annotation from the Annotations collection. This allows you to enhance collaboration and provide feedback directly within the PDF.
7373
The following example explains how to add comments or replies to specific annotations in the PDF document.
7474

75+
{% tabs %}
76+
{% highlight c# %}
77+
78+
ReadOnlyObservableCollection<Annotation> annotations = pdfViewer.Annotations;
79+
Annotation annotation = annotations[0];
80+
Comment comment = new Comment()
81+
{
82+
Text = "First Annotations",
83+
Author="User Name",
84+
ModifiedDate= DateTime.Now,
85+
};
86+
annotation.Comments.Add(comment);
87+
88+
{% endhighlight %}
89+
{% endtabs %}
90+
7591
## Editing the comments and comments replies of the annotations
7692
Comments and replies can be edited through the context menu available under the More Options in the Comment Panel. Follow the steps below:
7793
Select the annotation comment in the comment panel.

0 commit comments

Comments
 (0)