Searches the entire ArrayList for the specified Object and returns the index of the first occurrence.
[Visual Basic] Overloads Overridable Public Function IndexOf( _ ByVal value As Object _ ) As Integer [C#] public virtual int IndexOf( object value ); [C++] public: virtual int IndexOf( Object* value ); [JScript] public function IndexOf( value : Object ) : int;
The index of the first occurrence of value in the entire ArrayList, if found; otherwise,-1.
This method can be overridden by a derived class.
The ArrayList is searched forwards from the beginning to the end.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.IndexOf Overload List | LastIndexOf