Bewerken

Share via


Control.ControlCollection.IList.IndexOf(Object) Method

Definition

For a description of this member, see IndexOf(Object).

This API supports the product infrastructure and is not intended to be used directly from your code.

 virtual int System.Collections.IList.IndexOf(System::Object ^ control) = System::Collections::IList::IndexOf;
int IList.IndexOf (object control);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (control As Object) As Integer Implements IList.IndexOf

Parameters

control
Object

The object to locate in the Control.ControlCollection.

Returns

The index of control if found in the Control.ControlCollection; otherwise, -1.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the Control.ControlCollection instance is cast to an IList interface.

Applies to