語言

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

定義

關於此成員的描述,請參見 IndexOf(Object)。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

 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

參數

control
Object

要定位於 Control.ControlCollection的物件。

傳回

若在 中,control則Control.ControlCollection為 的索引;否則為 -1。

實作

備註

此成員為明確介面成員實作。 它只能在實 Control.ControlCollection 例投射到 IList 介面時使用。

適用於