Class DecodeType

DecodeType class

Specify the type of barcode to read.

public static class DecodeType

Properties

NameDescription
static AllSupportedTypesArray { get; }Gets an array that represents AllSupportedTypes

Methods

NameDescription
static GetNames()Retrieves an array of the names of the decode types.
static Is1D(BaseDecodeType)Determines if the specified BaseDecodeType contains any 1D barcode symbology
static Is2D(BaseDecodeType)Determines if the specified BaseDecodeType contains any 2D barcode symbology
static IsPostal(BaseDecodeType)Determines if the specified BaseDecodeType contains any Postal barcode symbology
static Parse(string, out SingleDecodeType)Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
static ScanSets(params BaseDecodeType[])Specify scan sets by barcodeTypes
static TryParse(string, out MultyDecodeType)Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
static TryParse(string, out SingleDecodeType)Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Fields

NameDescription
static readonly AllSupportedTypesSpecifies that data will be checked with all available symbologies
static readonly AustralianPosteParcelSpecifies that the data should be decoded with Australian Post Domestic eParcel Barcode barcode specification
static readonly AustraliaPostSpecifies that the data should be decoded with Australia Post barcode specification
static readonly AztecSpecifies that the data should be decoded with Aztec barcode specification
static readonly CodabarSpecifies that the data should be decoded with CODABAR barcode specification
static readonly CodablockFSpecifies that the data should be decoded with CodablockF barcode specification
static readonly Code11Specifies that the data should be decoded with CODE 11 barcode specification
static readonly Code128Specifies that the data should be decoded with CODE 128 barcode specification
static readonly Code16KSpecifies that the data should be decoded with SCode16K barcode specification
static readonly Code32Specifies that the data should be decoded with Code32 barcode specification
static readonly Code39ExtendedSpecifies that the data should be decoded with Extended CODE 39 barcode specification
static readonly Code39StandardSpecifies that the data should be decoded with Standard CODE 39 barcode specification
static readonly Code93ExtendedSpecifies that the data should be decoded with Extended CODE 93 barcode specification
static readonly Code93StandardSpecifies that the data should be decoded with Standard CODE 93 barcode specification
static readonly CompactPdf417Specifies that the data should be decoded with CompactPdf417 (Pdf417Truncated) barcode specification
static readonly DatabarExpandedSpecifies that the data should be decoded with GS1 Databar expanded barcode specification
static readonly DatabarExpandedStackedSpecifies that the data should be decoded with GS1 Databar expanded stacked barcode specification
static readonly DatabarLimitedSpecifies that the data should be decoded with GS1 Databar limited barcode specification
static readonly DatabarOmniDirectionalSpecifies that the data should be decoded with GS1 Databar omni-directional barcode specification
static readonly DatabarStackedSpecifies that the data should be decoded with GS1 Databar stacked barcode specification
static readonly DatabarStackedOmniDirectionalSpecifies that the data should be decoded with GS1 Databar stacked omni-directional barcode specification
static readonly DatabarTruncatedSpecifies that the data should be decoded with GS1 Databar truncated barcode specification
static readonly DataLogic2of5Specifies that the data should be decoded with DataLogic 2 of 5 barcode specification
static readonly DataMatrixSpecifies that the data should be decoded with DataMatrix barcode symbology
static readonly DeutschePostIdentcodeSpecifies that the data should be decoded with DeutschePost Ident code barcode specification
static readonly DeutschePostLeitcodeSpecifies that the data should be decoded with DeutschePost Leit code barcode specification
static readonly DotCodeSpecifies that the data should be decoded with DotCode barcode specification
static readonly DutchKIXSpecifies that the data should be decoded with DotCode barcode specification
static readonly EAN13Specifies that the data should be decoded with EAN-13 barcode specification
static readonly EAN14Specifies that the data should be decoded with EAN14 barcode specification
static readonly EAN8Specifies that the data should be decoded with EAN-8 barcode specification
static readonly GS1AztecSpecifies that the data should be decoded with GS1 Aztec barcode specification
static readonly GS1Code128Specifies that the data should be decoded with GS1 CODE 128 barcode specification
static readonly GS1CompositeBarSpecifies that the data should be decoded with GS1 Composite Bar barcode specification
static readonly GS1DataMatrixSpecifies that the data should be decoded with GS1DataMatrix barcode symbology
static readonly GS1DotCodeSpecifies that the data should be decoded with GS1 DotCode barcode specification
static readonly GS1HanXinSpecifies that the data should be decoded with GS1 Han Xin Code barcode specification
static readonly GS1MicroPdf417Specifies that the data should be decoded with MicroPdf417 barcode specification
static readonly GS1QRSpecifies that the data should be decoded with GS1 QR barcode specification
static readonly HanXinSpecifies that the data should be decoded with Han Xin Code barcode specification
static readonly HIBCAztecLICSpecifies that the data should be decoded with HIBC LIC Aztec barcode specification
static readonly HIBCAztecPASSpecifies that the data should be decoded with HIBC PAS Aztec barcode specification
static readonly HIBCCode128LICSpecifies that the data should be decoded with HIBC LIC Code128 barcode specification
static readonly HIBCCode128PASSpecifies that the data should be decoded with HIBC PAS Code128 barcode specification
static readonly HIBCCode39LICSpecifies that the data should be decoded with HIBC LIC Code39 barcode specification
static readonly HIBCCode39PASSpecifies that the data should be decoded with HIBC PAS Code39 barcode specification
static readonly HIBCDataMatrixLICSpecifies that the data should be decoded with HIBC LIC DataMatrix barcode specification
static readonly HIBCDataMatrixPASSpecifies that the data should be decoded with HIBC PAS DataMatrix barcode specification
static readonly HIBCQRLICSpecifies that the data should be decoded with HIBC LIC QR barcode specification
static readonly HIBCQRPASSpecifies that the data should be decoded with HIBC PAS QR barcode specification
static readonly IATA2of5Specifies that the data should be decoded with IATA 2 of 5 barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.
static readonly Interleaved2of5Specifies that the data should be decoded with INTERLEAVED 2 of 5 barcode specification
static readonly ISBNSpecifies that the data should be decoded with ISBN barcode specification
static readonly ISMNSpecifies that the data should be decoded with ISMN barcode specification
static readonly ISSNSpecifies that the data should be decoded with ISSN barcode specification
static readonly ItalianPost25Specifies that the data should be decoded with Italian Post 25 barcode specification
static readonly ITF14Specifies that the data should be decoded with ITF14 barcode specification
static readonly ITF6Specifies that the data should be decoded with ITF6 barcode specification
static readonly MacroPdf417Specifies that the data should be decoded with MacroPdf417 barcode specification
static readonly MailmarkSpecifies that the data should be decoded with Royal Mail Mailmark barcode specification.
static readonly Matrix2of5Specifies that the data should be decoded with Matrix 2 of 5 barcode specification
static readonly MaxiCodeSpecifies that the data should be decoded with MaxiCode barcode specification
static readonly MicrE13BSpecifies that the data should be decoded with MICR E-13B barcode specification
static readonly MicroPdf417Specifies that the data should be decoded with MicroPdf417 barcode specification
static readonly MicroQRSpecifies that the data should be decoded with MicroQR Code barcode specification
static readonly MostCommonTypesSpecifies that data will be checked with most commonly used symbologies
static readonly MSISpecifies that the data should be decoded with MSI Plessey barcode specification
static readonly NoneUnspecified decode type.
static readonly OneCodeSpecifies that the data should be decoded with USPS OneCode barcode specification
static readonly OPCSpecifies that the data should be decoded with OPC barcode specification
static readonly PatchCodeSpecifies that the data should be decoded with Patch code barcode specification. Barcode symbology is used for automated scanning
static readonly Pdf417Specifies that the data should be decoded with Pdf417 barcode symbology
static readonly PharmacodeSpecifies that the data should be decoded with Pharmacode barcode. This symbology is also known as Pharmaceutical Binary Code
static readonly PlanetSpecifies that the data should be decoded with Planet barcode specification
static readonly PostalTypesSpecifies that data will be checked with all of 1.5D Postal barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
static readonly PostnetSpecifies that the data should be decoded with Postnet barcode specification
static readonly PZNSpecifies that the data should be decoded with PZN barcode specification. This symbology is also known as Pharma Zentral Nummer
static readonly QRSpecifies that the data should be decoded with QR Code barcode specification
static readonly RectMicroQRSpecifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
static readonly RM4SCCSpecifies that the data should be decoded with RM4SCC barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.
static readonly SCC14Specifies that the data should be decoded with SCC14 barcode specification
static readonly SSCC18Specifies that the data should be decoded with SSCC18 barcode specification
static readonly Standard2of5Specifies that the data should be decoded with Standard 2 of 5 barcode specification
static readonly SupplementSpecifies that the data should be decoded with Supplement(EAN2, EAN5) barcode specification
static readonly SwissPostParcelSpecifies that the data should be decoded with Swiss Post Parcel Barcode barcode specification
static readonly Types1DSpecifies that data will be checked with all of 1D barcode symbologies
static readonly Types2DSpecifies that data will be checked with all of 2D barcode symbologies
static readonly UPCASpecifies that the data should be decoded with UPC-A barcode specification
static readonly UPCESpecifies that the data should be decoded with UPC-E barcode specification
static readonly VINSpecifies that the data should be decoded with VIN (Vehicle Identification Number) barcode specification

Examples

This sample shows how to detect Code39 and Code128 barcodes.

[C#]
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Standard, DecodeType.Code128))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        Console.WriteLine("BarCode Type: " + result.CodeTypeName);
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
    }
}
[VB.NET]
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code39Standard, DecodeType.Code128)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode Type: " + result.CodeTypeName)
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
    Next
End Using

See Also