QRCode
Kendo UI QRCode component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class QRCode : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseQRCode
Implements:
Inherited Members
Constructors
Initializes a new instance of the QRCode class.
Properties
The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.
public string Background { get; set; }
The border of the QR code.
public QRCodeBorderSettings Border { get; }
The color of the QR code. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
Specifies a QR code encoding mode.
public QREncoding? Encoding { get; set; }
Specifies a QR code error correction level.
public QRErrorCorrectionLevel? ErrorCorrection { get; set; }
The overlay configuration which alows you to choose from predefined layouts or insert a custom image.
public QRCodeOverlaySettings Overlay { get; }
Sets the minimum distance in pixels that should be left between the border and the QR modules.
public double? Padding { get; set; }
Sets the preferred rendering engine. If it is not supported by the browser, the QRCode will switch to the first available mode.The supported values are: "canvas" - renders the widget as a Canvas element, if available. or "svg" - renders the widget as inline SVG document, if available.
public RenderingMode? RenderAs { get; set; }
Specifies the size of a QR code in pixels (i.e. "200px"). Numeric values are treated as pixels. If no size is specified, it will be determined from the element width and height. In case the element has width or height of zero, a default value of 200 pixels will be used.
public double? Size { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: