corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-qrcodegenerator-18f6614a.md
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
[DefaultValue(QRCodeErrorCorrectionLevel.L)]
public virtual QRCodeErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
<DefaultValue(QRCodeErrorCorrectionLevel.L)>
Public Overridable Property ErrorCorrectionLevel As QRCodeErrorCorrectionLevel
| Type | Default | Description |
|---|---|---|
| QRCodeErrorCorrectionLevel | L |
A QRCodeErrorCorrectionLevel enumeration value.
|
Available values:
| Name | Description |
|---|---|
| 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
((QRCodeGenerator)barCode.Symbology).CompactionMode = QRCodeCompactionMode.AlphaNumeric;
((QRCodeGenerator)barCode.Symbology).ErrorCorrectionLevel = QRCodeErrorCorrectionLevel.H;
((QRCodeGenerator)barCode.Symbology).Version = QRCodeVersion.AutoVersion;
See Also