Back to Devexpress

QRCodeGenerator.Version Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-qrcodegenerator-cf2bd5a2.md

latest4.1 KB
Original Source

QRCodeGenerator.Version Property

Gets or sets the barcode’s version.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(QRCodeVersion.AutoVersion)]
public QRCodeVersion Version { get; set; }
vb
<DefaultValue(QRCodeVersion.AutoVersion)>
Public Property Version As QRCodeVersion

Property Value

TypeDefaultDescription
QRCodeVersionAutoVersion

A QRCodeVersion enumeration value.

|

Available values:

Show 41 items

NameDescription
AutoVersion

The version is auto-calculated.

| | Version1 |

21 x 21

| | Version2 |

25 x 25

| | Version3 |

29 x 29

| | Version4 |

33 x 33

| | Version5 |

37 x 37

| | Version6 |

41 x 41

| | Version7 |

45 x 45

| | Version8 |

49 x 49

| | Version9 |

53 x 53

| | Version10 |

57 x 57

| | Version11 |

61 x 61

| | Version12 |

65 x 65

| | Version13 |

69 x 69

| | Version14 |

73 x 73

| | Version15 |

77 x 77

| | Version16 |

81 x 81

| | Version17 |

85 x 85

| | Version18 |

89 x 89

| | Version19 |

93 x 93

| | Version20 |

97 x 97

| | Version21 |

101 x 101

| | Version22 |

105 x 105

| | Version23 |

109 x 109

| | Version24 |

113 x 113

| | Version25 |

117 x 117

| | Version26 |

121 x 121

| | Version27 |

125 x 125

| | Version28 |

129 x 129

| | Version29 |

133 x 133

| | Version30 |

137 x 137

| | Version31 |

141 x 141

| | Version32 |

145 x 145

| | Version33 |

149 x 149

| | Version34 |

153 x 153

| | Version35 |

157 x 157

| | Version36 |

161 x 161

| | Version37 |

165 x 165

| | Version38 |

169 x 169

| | Version39 |

177 x 177

| | Version40 |

177 x 177

|

Remarks

The Version property value defines the length of a barcode’s side using the following formula: 17 + 4 * Version.

The product of the XRBarCode.Module property value and the result of this formula define the barcode’s dimensions in pixels.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Version 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#L490

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

See Also

QR Code

QRCodeGenerator Class

QRCodeGenerator Members

DevExpress.XtraPrinting.BarCode Namespace