ToolStripItemCollection.IList.IndexOf(Object) 方法

定義

判斷指定之項目在集合中的位置。

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

參數

value
Object

要在集合中尋找的項目。

傳回

如果找到的話,則為項目在集合中的索引,否則為 -1。

實作

備註

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

適用於