Skip to main content
A newer version of this page is available.
All docs
V18.2

PdfTextMarkupAnnotationCreatingEventArgs.Author Property

Specifies the author of a text markup annotation.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v18.2.dll

Declaration

public string Author { get; set; }

Property Value

Type Description
String

A string that specifies the text markup annotation’s author.

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 Author 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