Encoding Property
Gets or sets the encoding of this DataMatrix barcode.
Syntax
'Declaration Public Property Encoding As DataMatrixEncoding
'Usage Dim instance As PDFDataMatrixBarcode Dim value As DataMatrixEncoding instance.Encoding = value value = instance.Encoding
public DataMatrixEncoding Encoding {get; set;}
Property Value
A DataMatrixEncoding enumeration member specifying the data encoding for this DataMatrix barcode.Remarks
If the data to encode contains only numbers (ASCII characters from 0x30 to 0x39), then DataMatrixEncoding.Numeric provides the best encoding. If the data to encode contains only base ASCII characters (0x00 to 0x7F), then both DataMatrixEncoding.ASCII and DataMatrixEncoding.Base256 encoding provide the same performance, but if the data to encode contains more than 3 extended ASCII characters (0x80 to 0xFF) then the DataMatrixEncoding.Base256 encoding is the best option.
If the selected encoding is DataMatrixEncoding.Auto, then the library will select the encoding that will generate the smallest encoded data.
If the selected encoding is DataMatrixEncoding.Auto, then the library will select the encoding that will generate the smallest encoded data.
Requirements
Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also