Control.ControlCollection.IList.IndexOf(Object) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
有关此成员的说明,请参见 IndexOf(Object)。
此 API 支持产品基础结构,不能在代码中直接使用。
virtual int System.Collections.IList.IndexOf(System::Object ^ control) = System::Collections::IList::IndexOf;
C#
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
- control
- Object
要在 Control.ControlCollection 中定位的对象。
如果在 Control.ControlCollection 中找到,则为 control
的索引;否则为 -1。
此成员是显式接口成员的实现。 它只能在 Control.ControlCollection 实例被强制转换为 IList 接口时使用。
产品 | 版本 |
---|---|
.NET Framework | 1.1 |