CSymbology.CInterleaved2Of5.LengthMode Property

Specifies acceptable bar code length. Length1, length2, and length3 are used differently depending on this property.

Namespace: Honeywell.Mobility.DataCollection

Assembly: Honeywell.Mobility.DataCollection.FF3.5 (in Honeywell.Mobility.DataCollection.FF3.5.dll)

Syntax

[C#]
public CSymbology.CInterleaved2Of5.ELengthMode LengthMode { get; set; }
[Visual Basic]
Public Property LengthMode As CSymbology.CInterleaved2Of5.ELengthMode
    Get
    Set

Property Value

Defined by the CSymbology.CInterleaved2Of5.ELengthMode enumeration.

Remarks

Minimum length for Interleaved 2 of 5 bar codes is 4 characters.

Bar code length = <bar code data> + [check digit].

When length1, length2, and length3 are set to 0, and this property is set to Length1Minimum, no length is specified and any bar code length is accepted.

Examples

[C#]
using Honeywell.Mobility.DataCollection; namespace DataCollection { public partial class frmBarcodeReader : Form { private Honeywell.Mobility.DataCollection.BarcodeReader bcr; public frmBarcodeReader() { InitializeComponent(); try { bcr = new Honeywell.Mobility.DataCollection.BarcodeReader(); bcr.Symbology.Interleaved2Of5.LengthMode = CSymbology.CInterleaved2Of5.ELengthMode.Length1Minimum; } catch (BarcodeReaderException bcrexp) { MessageBox.Show(bcrexp.Message); } } } }
[VB.NET]
Imports Honeywell.Mobility.DataCollection
Public Class BarcodeReader
    Private WithEvents bcr As Honeywell.Mobility.DataCollection.BarcodeReader

    Private Sub BarcodeReader_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            bcr = New Honeywell.Mobility.DataCollection.BarcodeReader()
            bcr.Symbology.Interleaved2Of5.LengthMode = CSymbology.CInterleaved2Of5.ELengthMode.Length1Minimum;
        Catch bcrexp As BarcodeReaderException
            MessageBox.Show(bcrexp.Message)
        End Try
    End Sub
End Class

Exceptions

BarcodeReaderException throws an exception when an error has occurred on bar code read methods and properties.

More Information

CSymbology.CInterleaved2Of5 Class