ListBox.IntegerCollection.IList.IndexOf(Object) 方法

定義

傳回集合中指定的定位停駐點的索引。

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

參數

item
Object

要在 ListBox.IntegerCollection 中尋找的定位停駐點。

傳回

Int32

如果在 ListBox.IntegerCollection 中找到項目,則為項目以零起始的索引,否則為 -1。

實作

備註

這個成員是明確介面成員實作, 只有在 ListBox.IntegerCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於