BarcodeText Property

Description

Gets the content of a barcode in pure text.

Syntax

public string BarcodeText { get; }

Data type

string

Example

try
{
    BarcodeResult[] results = reader.DecodeFile("C:\\test.bmp");
    for(int i = 0; i < results.Length; ++i)
    {
        BarcodeResult barcode = results[i];
        Console.WriteLine("{0}: {1}", i, barcode.BarcodeText);
    }
}
catch(BarcodeReaderException exp)
{
    Console.WriteLine("Error: {0}, {1}", exp.Code.ToString(), exp.Message);
}

See Also

.NET > Classes > BarcodeReader > DecodeFile
.NET > Classes > BarcodeResult
.NET > Classes > BarcodeReaderException