Back to Devexpress

QRCodeGenerator.ErrorCorrectionLevel Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-qrcodegenerator-18f6614a.md

latest2.8 KB
Original Source

QRCodeGenerator.ErrorCorrectionLevel Property

Gets or sets the amount of redundancy built into the bar code’s coding, to compensate for calculation errors.

Namespace : DevExpress.XtraPrinting.BarCode

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(QRCodeErrorCorrectionLevel.L)]
public virtual QRCodeErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
vb
<DefaultValue(QRCodeErrorCorrectionLevel.L)>
Public Overridable Property ErrorCorrectionLevel As QRCodeErrorCorrectionLevel

Property Value

TypeDefaultDescription
QRCodeErrorCorrectionLevelL

A QRCodeErrorCorrectionLevel enumeration value.

|

Available values:

NameDescription
M

15 % codewords can be restored.

| | L |

7 % codewords can be restored.

| | H |

30 % codewords can be restored.

| | Q |

25 % codewords can be restored.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ErrorCorrectionLevel property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L489

csharp
((QRCodeGenerator)barCode.Symbology).CompactionMode = QRCodeCompactionMode.AlphaNumeric;
((QRCodeGenerator)barCode.Symbology).ErrorCorrectionLevel = QRCodeErrorCorrectionLevel.H;
((QRCodeGenerator)barCode.Symbology).Version = QRCodeVersion.AutoVersion;

See Also

QR Code

QRCodeGenerator Class

QRCodeGenerator Members

DevExpress.XtraPrinting.BarCode Namespace