PDFView4NET WinForms Edition
Encoding Property




O2S.Components.PDFView4NET.Graphics.Barcodes Namespace > PDFDataMatrixBarcode Class : 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;}
public: __property DataMatrixEncoding get_Encoding();
public: __property void set_Encoding( 
   DataMatrixEncoding value
);
public:
property DataMatrixEncoding Encoding {
   DataMatrixEncoding get();
   void set (    DataMatrixEncoding value);
}

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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFDataMatrixBarcode Class
PDFDataMatrixBarcode Members