Gets barcode content by specified index.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public string GetBarcodeText(
	int barcodeIndex
)
Visual Basic
Public Function GetBarcodeText ( _
	barcodeIndex As Integer _
) As String

Parameters

barcodeIndex
Type: System..::..Int32
Specifies the index of barcode in image. The index is 0-based.

Return Value

Barcode content.

Remarks

An empty string will be returned, if the Source doesn't support barcode detection or the image data doesn't contain barcode. GetBarcodeText method, along with other properties about information of the current image, is valid only in OnPostTransfer event.

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also