Back to Devexpress

PdfViewer.SignatureCreating Event

maui-devexpress-dot-maui-dot-pdf-dot-pdfviewer-d733df2c.md

latest2.1 KB
Original Source

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

csharp
public event EventHandler<PdfHandwrittenSignatureCreatingEventArgs> SignatureCreating

Event Data

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

PropertyDescription
BuilderReturns an object that is used to build a signature.
CancelGets 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:

xaml
<dxp:PdfViewer ...
               SignatureCreating="pdfViewer_SignatureCreating">
csharp
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

PdfViewer Class

PdfViewer Members

DevExpress.Maui.Pdf Namespace