Returns the index of a specified Control object in the collection.
[Visual Basic] Overridable Public Function IndexOf( _ ByVal value As Control _ ) As Integer [C#] public virtual int IndexOf( Control value ); [C++] public: virtual int IndexOf( Control* value ); [JScript] public function IndexOf( value : Control ) : int;
The index of the specified control.-1 if the control is not currently a member of the collection.
ControlCollection Class | ControlCollection Members | System.Web.UI Namespace