Leadtools.Barcode Requires Barcode add-on license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.12
GetNextDuplicated Method
See Also 
Leadtools.Barcode Namespace > BarcodeData Class : GetNextDuplicated Method




index
A zero-based index of the current duplicated barcode. The value returned by this method will be greater than this value.
Returns the index of the next barcode in the array that is a duplicate of the barcode at the specified index.

Syntax

Visual Basic (Declaration) 
Public Function GetNextDuplicated( _
   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.GetNextDuplicated(index)
C# 
public int GetNextDuplicated( 
   int index
)
Managed Extensions for C++ 
public: int GetNextDuplicated( 
   int index
) 
C++/CLI 
public:
int GetNextDuplicated( 
   int index
) 

Parameters

index
A zero-based index of the current duplicated barcode. The value returned by this method will be greater than this value.

Return Value

>=0, the index of the next barcode in the array that is a duplicate of the barcode at the specified index; otherwise, this method will throw an exception.

Example

For an example, refer to BarcodeData.IsDuplicated example.

Remarks

As an example, assume a call to the BarcodeEngine.Read method is made to read ten barcodes in an array of BarcodeData. Suppose the BarcodeData.IsDuplicated property is called for the item at index 3 in the array, and TRUE is returned. This indicates one or more barcodes in the array are duplicates of the specified item. Calling the BarcodeData.GetFirstDuplicated method returns the index of the first barcode in the array that is a diplicate 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 this method with the 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. This means the barcodes at index 0, index 3, and index 9 of the array are all duplicates.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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