Class RadzenQRCode
QR code component base which generates a QR code module matrix and renders it as SVG.
Inherited Members
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
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |