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.
- C#
- VB.NET
public class ejSignature : ejBase
Public Class ejSignature
Inherits ejBase
Constructors
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);
ejSignature(options)
Constructs a new instance of the ejSignature class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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();