Skip to main content

BarCodePropertyProvider.DataMatrixCompactionMode Property

Gets or sets whether textual information or a byte array should be used as the barcode’s data, as well as its encoding. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

[ValueSerializer(typeof(XamlEnumSerializer<DataMatrixCompactionMode>))]
public DataMatrixCompactionMode DataMatrixCompactionMode { get; set; }

Property Value

Type Description
DataMatrixCompactionMode

A DataMatrixCompactionMode enumeration value. The default is DataMatrixCompactionMode.ASCII.

Available values:

Name Description
ASCII

Data is encoded into text using the ASCII standard, which uses 4 bits (for double digits), 8 bits (for ASCII 0-127 symbols), or 16 bits (for ASCII 128-255 symbols).

C40

Data is encoded into text using the C40 standard, which uses 5.33 bits (for upper register characters and digits) or 10.66 bits (for lower register and special characters) per symbol.

Text

Data is encoded into text, which uses 5.33 bits (for upper register characters and digits) or 10.66 bits (for lower register and special characters) per symbol.

X12

Data is encoded into text using the X12 standard, which uses 5.33 bits (for upper register characters, digits and the three standard ANSI X12 terminator and separator characters) or 10.66 bits (for lower register and special characters) per symbol.

Edifact

Data is encoded into text using the EDIFACT standard, which uses 6 bits per symbol.

Binary

Data is encoded into a binary array, using 8 bits per symbol.

Remarks

If the DataMatrixCompactionMode property is set to Binary, the barcode’s data is obtained from the BarCodeEdit.BinaryData property. Otherwise, the barcode’s data is obtained from the barcode’s EditValue property.

See Also