Class OneDExtendedParameters

OneDExtendedParameters class

Stores special data of 1D recognized barcode like separate codetext and checksum

public sealed class OneDExtendedParameters : BaseExtendedParameters


CheckSum { get; }Gets the checksum for 1D barcodes.
IsEmpty { get; }Tests whether all parameters has only default values
Value { get; }Gets the codetext of 1D barcodes without checksum.


override Equals(object)Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.
override GetHashCode()Returns the hash code for this instance.
override ToString()Returns a human-readable string representation of this OneDExtendedParameters.
operator ==Returns a value indicating whether the first OneDExtendedParameters value is equal to the second.
operator !=Returns a value indicating if the first OneDExtendedParameters value is different from the second.


This sample shows how to get 1D barcode value and checksum

using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN13, "1234567890128"))
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.EAN13))
    foreach (BarCodeResult result in reader.ReadBarCodes())
        Console.WriteLine("BarCode Type: " + result.CodeTypeName);
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
        Console.WriteLine("BarCode Value: " + result.Extended.OneD.Value);
        Console.WriteLine("BarCode Checksum: " + result.Extended.OneD.CheckSum);
Using generator As New BarcodeGenerator(EncodeTypes.EAN13, "1234567890128")
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.EAN13)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode Type: " + result.CodeTypeName)
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
        Console.WriteLine("BarCode Value: " + result.Extended.OneD.Value)
        Console.WriteLine("BarCode Checksum: " + result.Extended.OneD.CheckSum)
End Using

See Also