Accusoft.FormFix5.Net - Updated
IndexOf Method (FormModelCollection)




Accusoft.FormFixSdk Namespace > FormModelCollection 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 FormModel _
) As Integer
'Usage
 
Dim instance As FormModelCollection
Dim value As FormModel
Dim value As Integer
 
value = instance.IndexOf(value)
public int IndexOf( 
   FormModel value
)
public: int IndexOf( 
   FormModel* value
) 
public:
int IndexOf( 
   FormModel^ 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

FormModelCollection Class
FormModelCollection Members
Contains Method