# QRCodeBuilder

## Properties

### WriteAction - Func

## Methods

### Border(System.String,System.Int32)

The border of the QR code.

#### Parameters

##### color - `System.String`

The QR code border color.

##### width - `System.Int32`

The QR code border width.

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Border("green", 5)
            )
             
```

### Background(System.String)

The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.

#### Parameters

##### value - `System.String`

The value for Background

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Padding(5)
            )
             
```

### Border(System.Action)

The border of the QR code.

#### Parameters

##### configurator - System.Action<[QRCodeBorderSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebordersettingsbuilder)>

The configurator for the border setting.

#### RETURNS

Returns the current instance of [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) .

### Color(System.String)

The color of the QR code. Accepts a valid CSS color string, including hex and rgb.

#### Parameters

##### value - `System.String`

The value for Color

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Color("blue")
            )
             
```

### Overlay(System.Action)

The overlay configuration which alows you to choose from predefined layouts or insert a custom image.

#### Parameters

##### configurator - System.Action<[QRCodeOverlaySettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodeoverlaysettingsbuilder)>

The configurator for the overlay setting.

#### RETURNS

Returns the current instance of [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) .

### Padding(System.Double)

Sets the minimum distance in pixels that should be left between the border and the QR modules.

#### Parameters

##### value - `System.Double`

The value for Padding

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Padding(5)
            )
             
```

### RenderAs(Kendo.Mvc.UI.RenderingMode)

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.

#### Parameters

##### value - [RenderingMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/renderingmode)

The value for RenderAs

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .RenderAs(RenderingMode.Canvas)
            )
             
```

### Size(System.Double)

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.

#### Parameters

##### value - `System.Double`

The value for Size

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Size(170)
            )
             
```

### Value(System.String)

Sets the value of the QRCode. More about the value of the QRCode can be found in the Encoding documentation article.

#### Parameters

##### value - `System.String`

The value for Value

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Value("Hello world")
            )
             
```

### Encoding(Kendo.Mvc.UI.QREncoding)

Specifies a QR code encoding mode.

#### Parameters

##### value - [QREncoding](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/qrencoding)

The value for Encoding

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Encoding(QREncoding.UTF_8)
            )
             
```

### ErrorCorrection(Kendo.Mvc.UI.QRErrorCorrectionLevel)

Specifies a QR code error correction level.

#### Parameters

##### value - [QRErrorCorrectionLevel](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/qrerrorcorrectionlevel)

The value for ErrorCorrection

#### RETURNS

Returns the current [QRCodeBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/qrcodebuilder) instance.

#### Example

```
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .ErrorCorrection(QRErrorCorrectionLevel.Q)
            )
             
```

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Object`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
