Leadtools.Barcode.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
GetFirstDuplicatedIndex Method
See Also 
Leadtools.Barcode Namespace > BarcodeData Class : GetFirstDuplicatedIndex Method



index
A zero-based index of a barcode.
index
A zero-based index of a barcode.
Returns the index of the first barcode in the array that is a duplicate of the barcode at index.

Syntax

Visual Basic (Declaration) 
Public Function GetFirstDuplicatedIndex( _
   ByVal index As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As BarcodeData
Dim index As Integer
Dim value As Integer
 
value = instance.GetFirstDuplicatedIndex(index)
C# 
public int GetFirstDuplicatedIndex( 
   int index
)
C++/CLI 
public:
int GetFirstDuplicatedIndex( 
   int index
) 

Parameters

index
A zero-based index of a barcode.

Return Value

>=0, An index of duplicated barcode; Otherwise, this method will threw an exception.

Example

For an example, refer to BarcodeData.IsDuplicated example.

Remarks

As an example, a call to BarcodeEngine.Read method ten barcodes into arrray of BarcodeData. BarcodeData.IsDuplicated property is called for the item at index 3 in the array, and TRUE is returned. Therefore one or more barcodes in the array are duplicates of the specified item. Calling this method returns the index of the first barcode in the array that is a duplicate of the barcode at index 3 in the array. Suppose this value is 0. The barcode present at index zero in the array is the first duplicate of the barcode at index 3. Calling BarcodeData.GetNextDuplicated method with index set to 3 will return the index of the next barcode in the array that is a duplicate of the barcodes at index 0 and 3. Suppose this value is 9. Therefore the barcodes at index 0, index 3, and index 9 of the array are all duplicates.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also

Leadtools.Barcode.CF requires a Barcode Module license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features