PdfTextMarkupAnnotationCreatingEventArgs.Author Property

Specifies the author of a text markup annotation.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v20.1.dll

Declaration

public string Author { get; set; }
Public Property Author As String

Property Value

Type Description
String

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

Examples

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();
        }
    }
}
See Also