Table of Contents

Class BarcodeFormatCode2Of5Configuration

Namespace
ScanbotSDK.MAUI.Barcode
Assembly
ScanbotSDK.Shared.dll

Configuration for all 2-of-5 barcode types (except Interleaved 2-of-5, which is handled by ItfConfig). Add to scanner configuration to scan Code 25, IATA 2-of-5 and Industrial 2-of-5 barcodes.

Industrial 2-of-5 barcodes are a subset of Code 25 barcodes. Any valid Industrial 2-of-5 barcode is also a valid Code 25 barcode.

public class BarcodeFormatCode2Of5Configuration : BarcodeFormatOneDConfigurationBase
Inheritance
BarcodeFormatCode2Of5Configuration
Inherited Members

Properties

Code25

If true, scan and return Code 25 (Code 2-of-5) barcodes. If industrial2of5 is also true, then valid Industrial 2-of-5 barcodes will preferentially be returned as such, instead of Code 25.

Default is false

public bool Code25 { get; set; }

Property Value

bool

Iata2of5

If true, scan IATA 2-of-5 barcodes. If useIATA2OF5Checksum is true, only barcodes with a valid checksum are returned.

Default is true

public bool Iata2of5 { get; set; }

Property Value

bool

Industrial2of5

If true, scan and return valid Industrial 2-of-5 barcodes. If false, but code25 is true, Industrial 2-of-5 barcodes will be returned as Code 25 barcodes.

Default is true

public bool Industrial2of5 { get; set; }

Property Value

bool

MaximumTextLength

Maximum text length. 0 implies no maximum. Applied only to linear barcode formats that allow variable length.

Default is 0

public int MaximumTextLength { get; set; }

Property Value

int

MinimumTextLength

Minimum text length. Applied only to linear barcode formats that allow variable length.

Default is 1

public int MinimumTextLength { get; set; }

Property Value

int

StripCheckDigits

If true, the check digits are stripped from the result.

Default is false

public bool StripCheckDigits { get; set; }

Property Value

bool

UseIATA2OF5Checksum

If true, return IATA_2_OF_5 barcodes only if they have a valid check digit.

Default is true

public bool UseIATA2OF5Checksum { get; set; }

Property Value

bool

Methods

FromJson(string)

public static BarcodeFormatCode2Of5Configuration FromJson(string rawJson)

Parameters

rawJson string

Returns

BarcodeFormatCode2Of5Configuration