ReaderOptions Property

Description

Gets or sets the options for reading barcode. The options include the type of the barcode and the maximum number of barcodes to read at a time.

Syntax

public ReaderOptions ReaderOptions { get; set; }

Data type

ReaderOptions

With default reading options, BarcodeReader will decode all format and all barcodes. Check out ReaderOptions.

Example

ReaderOptions option = new ReaderOptions();
option.BarcodeFormats = (
    BarcodeFormat.OneD | 
    BarcodeFormat.QR_CODE | 
    BarcodeFormat.PDF417 | 
    BarcodeFormat.DATAMATRIX
);
option.MaxBarcodesToReadPerPage = 100;
BarcodeReader reader = new BarcodeReader();
reader.ReaderOptions = option;

See Also

.NET > Classes > ReaderOptions > BarcodeFormats
.NET > Classes > ReaderOptions > MaxBarcodesToReadPerPage
.NET > Enumeration > BarcodeFormat