QRCodeSymbology.CompactionMode Property
In This Article
Gets or sets whether numeric, alphanumeric or byte mode should be used to encode the barcode’s data.
Namespace: DevExpress.WinUI.Controls
Assembly: DevExpress.WinUI.BarCode.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(QRCodeCompactionMode.AlphaNumeric, Handler = "CompactionModePropertyChanged")]
[TypeConverter(typeof(XamlEnumTypeConverter<QRCodeCompactionMode>))]
public QRCodeCompactionMode CompactionMode { get; set; }
#Property Value
Type | Description |
---|---|
DevExpress. |
Specifies whether to use to encode the barcode’s data: text or binary. |
#Remarks
Available values:
Name | Description |
---|---|
Numeric | Numeric data is encoded. Max. 7,089 characters. |
Alpha |
A combination of alphabetic and numeric characters is encoded. Max. 4,296 characters. |
Byte | Binary data is encoded. Max. 2,953 bytes. |
If the data encoded in text mode contains invalid characters for QRCode, switch to byte mode to interpret the data as a sequence of bytes and use this sequence to encode the barcode.
Set the barcode’s CompactionMode property to Byte to enable byte mode.
See Also