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.ToolBarButtonCollectionIList インターフェイスにキャストされた場合にのみ使用できます。

適用対象