All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfMarkupAnnotationComment Class

Represents a comment added to an annotation.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.2.Core.dll

Declaration

public class PdfMarkupAnnotationComment
Public Class PdfMarkupAnnotationComment

Remarks

Create a Comment

The PdfMarkupAnnotationData.AddReply method adds a comment to the annotation.

Call the PdfMarkupAnnotationComment.AddReply method to create a nested comment.

Use the PdfMarkupAnnotationComment members to change the reply's author, subject and text.

The code sample below creates two nested comments and adds a review to the second comment (the document is opened in DevExpress WinForms PDF Viewer):

annotations-comment

private static void AddAnnotationComments(PdfMarkupAnnotationData annotation)
{
    PdfMarkupAnnotationComment comment =
    annotation.AddReply("Reviewer", "Done");
    comment.Subject = "Proofread";

    PdfMarkupAnnotationComment nestedComment =
    comment.AddReply(annotation.Author, "Thanks");
    nestedComment.Subject = "Reviewed";
}

Access Comments

The PdfMarkupAnnotationData.Replies and PdfMarkupAnnotationComment.Replies properties obtain all comments added to an annotation or comment.

CODE

Remove Comments

Pass the comment that should be removed as the PdfMarkupAnnotationData.RemoveReply (the PdfMarkupAnnotationComment.RemoveReply for nested comments) method parameter to remove it.

CODE

Inheritance

Object
PdfMarkupAnnotationComment
See Also