Barcode2DDecodeResult Class

Represents the content of a Data Matrix, PDF417 or Aztec symbol read by Barcode2DDecoder.

public sealed class Barcode2DDecodeResult

Properties

NameDescription
BytesGets the bytes of the data, without the ECI designators. The FNC1 characters that separate the elements of GS1 data are GS bytes (0x1D); the FNC1 that marks GS1 data at the start of the symbol is not included.
CorrectedErrorCountGets the number of codewords that the error correction fixed.
EciAssignmentNumberGets the assignment number of the first ECI designator of the data, or null.
IsGs1Gets whether the data is GS1 element strings: the symbol starts with a FNC1 character.
TextGets the text of the data. The bytes are decoded with the character set of the ECI designator that precedes them; without one, as UTF-8 when they are valid UTF-8, and as ISO/IEC 8859-1 otherwise. The FNC1 characters that separate the elements of GS1 data are GS characters (U+001D). For GS1 data (Barcode2DDecodeResult.IsGs1), the text is the human-readable interpretation: each application identifier in parentheses, followed by its data.
TypeGets the type of the symbol.

Gets the bytes of the data, without the ECI designators. The FNC1 characters that separate the elements of GS1 data are GS bytes (0x1D); the FNC1 that marks GS1 data at the start of the symbol is not included.

public ReadOnlyMemory<byte> Bytes { get; }

Property value

ReadOnlyMemory<byte>

CorrectedErrorCount

Barcode2DDecodeResult.cs

Gets the number of codewords that the error correction fixed.

public int CorrectedErrorCount { get; }

Property value

int

EciAssignmentNumber

Barcode2DDecodeResult.cs

Gets the assignment number of the first ECI designator of the data, or null.

public int? EciAssignmentNumber { get; }

Property value

int?

Gets whether the data is GS1 element strings: the symbol starts with a FNC1 character.

public bool IsGs1 { get; }

Property value

bool

Gets the text of the data. The bytes are decoded with the character set of the ECI designator that precedes them; without one, as UTF-8 when they are valid UTF-8, and as ISO/IEC 8859-1 otherwise. The FNC1 characters that separate the elements of GS1 data are GS characters (U+001D). For GS1 data (Barcode2DDecodeResult.IsGs1), the text is the human-readable interpretation: each application identifier in parentheses, followed by its data.

public string Text { get; }

Property value

string

Gets the type of the symbol.

public Barcode2DType Type { get; }

Property value

Barcode2DType

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.