Skip to main content

ejSignature

Namespace: Wisej.Web.Ext.Syncfusion

Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)

The Signature control allows the user to draw a signature using the mouse, a pen or a finger. The color and the width of the stroke and the background of the drawing area can be customized, and the drawing can be cleared, undone or saved as an image.

public class ejSignature : ejBase

Constructors​

Instance member ejSignature()​

Constructs a new instance of the ejSignature class.

Example:

The following example creates the signature control and sets the stroke through the options.

var signature = new ejSignature();
signature.Options.strokeColor = "#003399";
signature.Options.strokeWidth = 3;
signature.Size = new Size(400, 200);
this.Controls.Add(signature);

Instance member ejSignature(options)​

Constructs a new instance of the ejSignature class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a signature control with a light background and clears the drawing on request.

var signature = new ejSignature(new
{
strokeColor = "black",
strokeWidth = 2,
backgroundColor = "#f5f5f5"
});
signature.Size = new Size(400, 200);
this.Controls.Add(signature);

// later, i.e. in the handler of a "Clear" button.
signature.Instance.clear();

Implements​