Control.ControlCollection.IList.IndexOf(Object) 方法

定义

有关此成员的说明,请参见 IndexOf(Object)

此 API 支持产品基础结构,不能在代码中直接使用。

C#
int IList.IndexOf (object control);

参数

control
Object

要在 Control.ControlCollection 中定位的对象。

返回

Int32

如果在 Control.ControlCollection 中找到,则为 control 的索引;否则为 -1。

实现

注解

此成员是显式接口成员的实现。 它只能在 Control.ControlCollection 实例被强制转换为 IList 接口时使用。

适用于

产品 版本
.NET Framework 1.1