Chili.Opf3 Send comments on this topic.
IndexOf Method
See Also 
Chili.Opf3 Namespace > Generic ObjectView Class : IndexOf Method




item
The object to locate in the ObjectView.
Determines the index of a specific item in the ObjectView.

Syntax

Visual Basic (Declaration) 
Public Function IndexOf( _
   ByVal item As T _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As ObjectView(Of T)
Dim item As T
Dim value As Integer
 
value = instance.IndexOf(item)
C# 
public int IndexOf( 
   T item
)
Managed Extensions for C++ 
public: int IndexOf( 
   T item
) 
C++/CLI 
public:
int IndexOf( 
   T item
) 

Parameters

item
The object to locate in the ObjectView.

Return Value

The index of item if found in the list; otherwise, -1.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also