BarcodeDecodeResult Class

Represents a linear barcode read by BarcodeDecoder: its type, its text, and where it is on the scan lines.

public sealed class BarcodeDecodeResult

Properties

NameDescription
EndGets the position of the end of the last bar of the barcode on its scan lines, in the unit of the widths of the runs.
FirstScanLineGets the index of the first scan line that crosses the barcode.
LastScanLineGets the index of the last scan line that crosses the barcode.
StartGets the position of the first bar of the barcode on its scan lines, in the unit of the widths of the runs.
TextGets the text of the barcode, as Barcode.Text gives it for a generated barcode: the check characters of Code 39 are part of the text, the start and stop characters of Codabar too, the add-on of an EAN or UPC symbol follows a space, and GS1 data is its human-readable interpretation (each application identifier in parentheses).
TypeGets the type of the barcode.

Gets the position of the end of the last bar of the barcode on its scan lines, in the unit of the widths of the runs.

public long End { get; }

Property value

long

Gets the index of the first scan line that crosses the barcode.

public int FirstScanLine { get; }

Property value

int

Gets the index of the last scan line that crosses the barcode.

public int LastScanLine { get; }

Property value

int

Gets the position of the first bar of the barcode on its scan lines, in the unit of the widths of the runs.

public long Start { get; }

Property value

long

Gets the text of the barcode, as Barcode.Text gives it for a generated barcode: the check characters of Code 39 are part of the text, the start and stop characters of Codabar too, the add-on of an EAN or UPC symbol follows a space, and GS1 data is its human-readable interpretation (each application identifier in parentheses).

public string Text { get; }

Property value

string

Gets the type of the barcode.

public BarcodeType Type { get; }

Property value

BarcodeType

Remarks

An EAN-13 symbol whose first digit is 0 is reported as BarcodeType.UpcA: the two are the same bars. The type of a GS1 DataBar Stacked or Stacked Omnidirectional symbol comes from the heights of its rows.

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.