Returns the index of the specified item if it is found in the collection. 
Syntax
| Visual Basic (Declaration) | 
  | 
Public Overridable Function IndexOf( _
   ByVal item As T _
) As Integer  | 
 
| Visual Basic (Usage) | 
 Copy Code | 
Dim instance As RasterCollection(Of T)
Dim item As T
Dim value As Integer
 
value = instance.IndexOf(item)
  | 
 
| C# | 
  | 
public virtual int IndexOf( 
   T item
)  | 
 
| C++/CLI | 
  | 
public:
virtual int IndexOf( 
   T item
)   | 
 
Parameters
- item 
 - Object to test.
 
Return Value
The index of the specified item if it is found in the collection.
 
Example
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
 
See Also