ToolBar.ToolBarButtonCollection.IList.IndexOf(Object) 方法

定義

決定集合中指定項目的索引。

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

參數

button
Object

要在集合中尋找的項目。

傳回

Int32

如果可在清單中找到則為 button 的索引,否則為 -1。

實作

備註

這個成員是明確介面成員實作, 它只有在 ToolBar.ToolBarButtonCollection 轉型成 IList 介面時才能使用。

適用於