DataGridViewCellCollection.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);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

パラメーター

value
Object

DataGridViewCellCollection 内で検索するオブジェクト。

戻り値

一覧に存在する場合は value のインデックス、それ以外の場合は -1 です。

実装

注釈

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、DataGridViewCellCollection のインスタンスが IList インターフェイスにキャストされる場合のみ、使用できます。

適用対象

こちらもご覧ください