For the complete documentation index, see llms.txt. This page is also available as Markdown.

Signature

Adds support for signature input and export. Users can draw inside of the signature control.

Code Example

This will create a Signature control on the page. The LineColor property controls the color of the line, and LineWidth controls the width of the line. Once the program is run, you can click and drag the mouse to draw a line in the Signature control. It will look like this:

How to Use

The Signature extension can be added to a Wisej.NET project using NuGet Package Manager.

Use the following properties to configure your Signature control:

  • BorderStyle. The style of the Control's border.

  • LineColor. The color of the Signature line.

  • LineWidth. The width of the Signature line.

  • ReadOnly. If true, the Signature cannot be changed.

Use the following methods of your Signature control:

  • GetImageAsync. Returns an image of the Signature.

  • IsEmptyAsync. Returns true when there is no Signature.

  • Load. Loads an image into the Signature control.

  • CanRedoAsync. Returns true if there is a user action that can be redone.

  • CanUndoAsync. Returns true if there is a user action that can be undone.

  • Redo. Redoes the last user action.

  • Undo. Undoes the last user action.

Signature control fires these events:

  • SignatureChange. Fired whenever the Signature is changed.

Live demo

Live Demo of the Signature Control

Last updated

Was this helpful?