ImageGear23.Barcode Assembly > ImageGear.Barcode Namespace > ImGearBarcodeReader Class : BarcodeTypes Property |
'Declaration Public ReadOnly Property BarcodeTypes As Collection(Of ImGearBarcodeType)
'Usage Dim instance As ImGearBarcodeReader Dim value As Collection(Of ImGearBarcodeType) value = instance.BarcodeTypes
public Collection<ImGearBarcodeType> BarcodeTypes {get;}
public: __property Collection<ImGearBarcodeType>* get_BarcodeTypes();
public: property Collection<ImGearBarcodeType>^ BarcodeTypes { Collection<ImGearBarcodeType>^ get(); }
By default, the barcode engine searches for all 1D barcodes. The 1D barcode set includes all types, except PatchCodeBarcode, PostNetBarcode, PDF417Barcode, Aztec and DataMatrixBarcode
Barcode types can be combined. The C# example below demonstrates creating a generic collection of BarcodeTypes.
Default value: ImGearBarcodeType.UnknownBarcode
// Clear all barcode types
// Remember by default, the barcode engine searches for all 1D barcodes
IGBarcode.Reader.BarcodeTypes.Clear();
// Add barcode types
IGBarcode.Reader.BarcodeTypes.Add(ImGearBarcodeType.Industry2of5Barcode);
IGBarcode.Reader.BarcodeTypes.Add(ImGearBarcodeType.Interleaved2of5Barcode);