Leadtools.Services.Barcode.DataContracts Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
IndexDuplicate Property
See Also 
Leadtools.Services.Barcode.DataContracts Namespace > BarcodeData Class : IndexDuplicate Property



(Read only) Gets a zero-based index of the next duplicated barcode.

Syntax

Visual Basic (Declaration) 
<DataMemberAttribute(Name="IndexDuplicate", IsRequired=True)>
Public ReadOnly Property IndexDuplicate As Integer
Visual Basic (Usage)Copy Code
Dim instance As BarcodeData
Dim value As Integer
 
value = instance.IndexDuplicate
C# 
[DataMemberAttribute(Name="IndexDuplicate", IsRequired=true)]
public int IndexDuplicate {get;}
C++/CLI 
[DataMemberAttribute(Name="IndexDuplicate", IsRequired=true)]
public:
property int IndexDuplicate {
   int get();
}

Return Value

Possible values are:

>=0, Next duplicated index.

-1, The barcode is not duplicated.

0xFF, The barcode is the last duplicated one.

Example

For an example, refer to Barcode1d example.

Remarks

The Leadtools.Services.Barcode.ServiceContracts.IBarcodeService.Read operation updates the value of this property.

LEADTOOLS provides a number of functions to let you work with duplicated barcodes. They let you:

  • Find the number of duplicates of a specific barcode
  • Determine whether a specific barcode is duplicated
  • Get the index of the first duplicated barcode
  • Get the index of a subsequent barcode

To determine whether a barcode is duplicated, use the IsDuplicated property. If a barcode is duplicated, the DuplicatedIndex property will return the index of the first barcode in the array after the specified barcode, which is a duplicate of the specified barcode. The DuplicateCount property will get the total number of barcodes duplicated for the current barcode.

If you know the index of a barcode within an array, use the IndexDuplicate property to get the next instance of a duplicated barcode.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Applications developed with LEADTOOLS WCF components require runtime licenses. Server licensing is required for applications on a server. For more information, refer to: Imaging Pro/Document/Medical Features