Back to Devexpress

PdfAnnotationCreatingEventArgs.Builder Property

maui-devexpress-dot-maui-dot-pdf-dot-pdfannotationcreatingeventargs.md

latest1.5 KB
Original Source

PdfAnnotationCreatingEventArgs.Builder Property

Returns an object that is used to build an annotation.

Namespace : DevExpress.Maui.Pdf

Assembly : DevExpress.Maui.Pdf.dll

NuGet Package : DevExpress.Maui.Pdf

Declaration

csharp
public IPdfViewerAnnotationBuilder Builder { get; }

Property Value

TypeDescription
IPdfViewerAnnotationBuilder

An object that implements the IPdfViewerAnnotationBuilder interface.

|

Remarks

The following code snippet specifies the author name for highlight annotations:

cs
private void pdfViewer_AnnotationCreating(object sender, PdfAnnotationCreatingEventArgs e) {
    if (e.Builder.AnnotationType == PdfAnnotationType.TextMarkup) {
        IPdfViewerMarkupAnnotationBuilder builder =
        e.Builder.AsTextMarkupAnnotationBuilder();
        builder.Author = "John Smith";

    }
}

See Also

PdfAnnotationCreatingEventArgs Class

PdfAnnotationCreatingEventArgs Members

DevExpress.Maui.Pdf Namespace