kendoQRCode
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The QRCode generates Canvas and Scalable Vector Graphics (SVG) images that represent Quick Response (QR) codes.
- C#
- VB.NET
public class kendoQRCode : kendoBase
Public Class kendoQRCode
Inherits kendoBase
Constructors
kendoQRCode()
Constructs a new instance of the kendoQRCode class.
Example:
The following example creates a QR code and sets the encoded value through the Options property.
var qrCode = new kendoQRCode();
qrCode.Options.value = "https://wisej.com";
qrCode.Options.size = 160;
qrCode.Size = new Size(160, 160);
this.Controls.Add(qrCode);
kendoQRCode(options)
Constructs a new instance of the kendoQRCode class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a QR code with a medium error correction level, a custom color and a border.
var qrCode = new kendoQRCode(new
{
value = "https://wisej.com",
errorCorrection = "M",
size = 200,
color = "#1a3c6e",
border = new { color = "#1a3c6e", width = 4 }
});
qrCode.Size = new Size(200, 200);
this.Controls.Add(qrCode);