Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
public IPdfViewerAnnotationBuilder Builder { get; }

#Property Value

Type Description
IPdfViewerAnnotationBuilder

An object that implements the IPdfViewerAnnotationBuilder interface.

#Remarks

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

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