Skip to main content

PdfViewer.SignatureCreating Event

Occurs before a signature is added so you can cancel adding the signature.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

Declaration

public event EventHandler<PdfHandwrittenSignatureCreatingEventArgs> SignatureCreating

Event Data

The SignatureCreating event's data class is PdfHandwrittenSignatureCreatingEventArgs. The following properties provide information specific to this event:

Property Description
Builder Returns an object that is used to build a signature.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.

Remarks

Set the e.Cancel property to true in the SignatureCreating event handler to cancel signature creation.

The following example customizes the newly created signature appearance settings:

<dxp:PdfViewer ...
               SignatureCreating="pdfViewer_SignatureCreating">
private void pdfViewer_SignatureCreating(object sender, PdfHandwrittenSignatureCreatingEventArgs e) {
    e.Builder.LineWidth = 5;
    e.Builder.Color = Colors.Green;
}

For more information about signatures, refer to the following help topic: Sign Documents.

See Also