BarcodeFormat Property
Description
Gets the format/type of a barcode.
Syntax
public BarcodeFormat BarcodeFormat { get; }
Data type
BarcodeFormat
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.BarcodeFormat.ToString());
}
}
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