QRCodeBuilder
Defines the fluent API for configuring the Kendo UI QRCode
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class QRCodeBuilder : WidgetBuilderBase<QRCode, QRCodeBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<QRCode, QRCodeBuilder>QRCodeBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the QRCodeBuilder class.
Methods
The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.
public QRCodeBuilder Background(string value)
The value for Background
Returns:Returns the current QRCodeBuilder instance.
The border of the QR code.
public QRCodeBuilder Border(Action<QRCodeBorderSettingsBuilder> configurator)
The QRCodeBorderSettingsBuilder for the border setting.
Returns:Returns the current instance of QRCodeBuilder .
The border of the QR code.
public QRCodeBuilder Border(string color, int width)
The QR code border color.
widthintThe QR code border width.
Returns:Returns the current QRCodeBuilder instance.
The color of the QR code. Accepts a valid CSS color string, including hex and rgb.
public QRCodeBuilder Color(string value)
The value for Color
Returns:Returns the current QRCodeBuilder instance.
Specifies a QR code encoding mode.
public QRCodeBuilder Encoding(QREncoding value)
The value for Encoding
Returns:Returns the current QRCodeBuilder instance.
Specifies a QR code error correction level.
public QRCodeBuilder ErrorCorrection(QRErrorCorrectionLevel value)
The value for ErrorCorrection
Returns:Returns the current QRCodeBuilder instance.
The overlay configuration which alows you to choose from predefined layouts or insert a custom image.
public QRCodeBuilder Overlay(Action<QRCodeOverlaySettingsBuilder> configurator)
The QRCodeOverlaySettingsBuilder for the overlay setting.
Returns:Returns the current instance of QRCodeBuilder .
Sets the minimum distance in pixels that should be left between the border and the QR modules.
public QRCodeBuilder Padding(double value)
The value for Padding
Returns:Returns the current QRCodeBuilder instance.
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 QRCodeBuilder RenderAs(RenderingMode value)
The value for RenderAs
Returns:Returns the current QRCodeBuilder instance.
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 QRCodeBuilder Size(double value)
The value for Size
Returns:Returns the current QRCodeBuilder instance.
Sets the value of the QRCode. More about the value of the QRCode can be found in the Encoding documentation article.
public QRCodeBuilder Value(string value)
The value for Value
Returns:Returns the current QRCodeBuilder instance.