PageNumber Property

Description

Gets the index of the page on which the specified barcode is located. The index starts from 1.

Syntax

public int PageNumber{ get;}

Data type

int

Example

try
{
    BarcodeResult[] results = reader.DecodeFile("C:\\test.bmp");
    string sResults = "Total barcode(s) found: " + results.Length;
    for(int i = 0; i < results.Length; ++i)
    {
        BarcodeResult barcode = results[i];
        Console.WriteLine("{0}: {1}", i, barcode.PageNumber.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