ScanFix Xpress v9.0 for .NET - Updated
IndexOf Method (EnhancementOptionsCollection)




Accusoft.ScanFixXpressSdk Namespace > EnhancementOptionsCollection Class : IndexOf Method
The element to search for in the collection.
Determines whether the specified element is in the collection and returns its index.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal value As EnhancementOption _
) As Integer
'Usage
 
Dim instance As EnhancementOptionsCollection
Dim value As EnhancementOption
Dim value As Integer
 
value = instance.IndexOf(value)
public int IndexOf( 
   EnhancementOption value
)
public: int IndexOf( 
   EnhancementOption* value
) 
public:
int IndexOf( 
   EnhancementOption^ value
) 

Parameters

value
The element to search for in the collection.

Return Value

If the element is present in the collection, this method will return the zero-based index of the first occurrence of it; otherwise this method will return -1.
Remarks
This method implements a standard collection operation. It searches the collection for a reference to the given element. If it finds a reference to it, it will return its index. If it cannot find a reference to it, this method will return -1. If the element is present more than once in the collection, this method will return the lowest index of a match.
See Also

Reference

EnhancementOptionsCollection Class
EnhancementOptionsCollection Members
Contains Method

Is this page helpful?
Yes No
Thanks for your feedback.