Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenQRCode

    QR code component base which generates a QR code module matrix and renders it as SVG.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenQRCode
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.SetParametersAsync(ParameterView)
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenQRCode : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RadzenQRCode()

    QR code component base which generates a QR code module matrix and renders it as SVG.

    Declaration
    public RadzenQRCode()

    Properties

    Background

    Gets or sets the background color of the QR code.

    Declaration
    [Parameter]
    public string Background { get; set; }
    Property Value
    Type Description
    string

    Ecc

    Gets or sets the error correction .

    Declaration
    [Parameter]
    public RadzenQREcc Ecc { get; set; }
    Property Value
    Type Description
    RadzenQREcc

    EyeColor

    Optional color for eyes; if empty, falls back to Foreground.

    Declaration
    [Parameter]
    public string EyeColor { get; set; }
    Property Value
    Type Description
    string

    EyeColorBottomLeft

    Optional color for bottom right eye; if empty, falls back to EyeColor.

    Declaration
    [Parameter]
    public string EyeColorBottomLeft { get; set; }
    Property Value
    Type Description
    string

    EyeColorTopLeft

    Optional color for top left eye; if empty, falls back to EyeColor.

    Declaration
    [Parameter]
    public string EyeColorTopLeft { get; set; }
    Property Value
    Type Description
    string

    EyeColorTopRight

    Optional color for top right eye; if empty, falls back to EyeColor.

    Declaration
    [Parameter]
    public string EyeColorTopRight { get; set; }
    Property Value
    Type Description
    string

    EyeShape

    Shape for finder eyes (the 3 corner boxes).

    Declaration
    [Parameter]
    public QRCodeEyeShape EyeShape { get; set; }
    Property Value
    Type Description
    QRCodeEyeShape

    EyeShapeBottomLeft

    Shape for top bottom finder eye.

    Declaration
    [Parameter]
    public QRCodeEyeShape? EyeShapeBottomLeft { get; set; }
    Property Value
    Type Description
    QRCodeEyeShape?

    EyeShapeTopLeft

    Shape for top left finder eye.

    Declaration
    [Parameter]
    public QRCodeEyeShape? EyeShapeTopLeft { get; set; }
    Property Value
    Type Description
    QRCodeEyeShape?

    EyeShapeTopRight

    Shape for top right finder eye.

    Declaration
    [Parameter]
    public QRCodeEyeShape? EyeShapeTopRight { get; set; }
    Property Value
    Type Description
    QRCodeEyeShape?

    Foreground

    Gets or sets the foreground color used for the dark modules.

    Declaration
    [Parameter]
    public string Foreground { get; set; }
    Property Value
    Type Description
    string

    Image

    URL, data: URI, or raw base64 (will be prefixed) to render in the center.

    Declaration
    [Parameter]
    public string Image { get; set; }
    Property Value
    Type Description
    string

    ImageBackground

    Background color under the logo (usually white).

    Declaration
    [Parameter]
    public string ImageBackground { get; set; }
    Property Value
    Type Description
    string

    ImageBackgroundOpacity

    Background opacity under the logo (0..1). Default 1.

    Declaration
    [Parameter]
    public double ImageBackgroundOpacity { get; set; }
    Property Value
    Type Description
    double

    ImageCornerRadius

    Rounded-corner radius for the logo cutout in module units. Default 0.75.

    Declaration
    [Parameter]
    public double ImageCornerRadius { get; set; }
    Property Value
    Type Description
    double

    ImagePaddingModules

    Extra white padding around the logo in module units. Default 1.

    Declaration
    [Parameter]
    public double ImagePaddingModules { get; set; }
    Property Value
    Type Description
    double

    ImageSizePercent

    Logo box size as % of the inner QR (without quiet zone). Safe range 5�60%. Default 20.

    Declaration
    [Parameter]
    public double ImageSizePercent { get; set; }
    Property Value
    Type Description
    double

    ModuleShape

    Gets or sets the edge shape.

    Declaration
    [Parameter]
    public QRCodeModuleShape ModuleShape { get; set; }
    Property Value
    Type Description
    QRCodeModuleShape

    Size

    Gets or sets the rendered size (both width and height) in pixels of the SVG.

    Declaration
    [Parameter]
    public string Size { get; set; }
    Property Value
    Type Description
    string

    Value

    Gets or sets the text value to encode into the QR code.

    Declaration
    [Parameter]
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    BuildRenderTree(RenderTreeBuilder)

    QR code component base which generates a QR code module matrix and renders it as SVG.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT