Skip to main content
A newer version of this page is available.
All docs
V19.1

PdfTextMarkupAnnotationCreatingEventArgs.Comment Property

Specifies text to be displayed when the markup annotation’s popup window is opened over a page.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v19.1.dll

Declaration

public string Comment { get; set; }

Property Value

Type Description
String

A String value that specifies text to be displayed when the markup annotation’s popup window is opened over a page.

Example

This example shows how to create a text markup annotation that highlights a selected text.

using System.Drawing;
using System.Windows.Forms;

namespace CreateMarkupAnnotation {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();

            // Load a document.
            pdfViewer1.LoadDocument("..\\..\\Demo.pdf");

            // Select the document area where the markup annotation will be created.
            pdfViewer1.Select(new RectangleF(-230, 420, 1240, 150));

            // Highlight a selected text.
            pdfViewer1.HighlightSelectedText();
        }
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Comment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also