DataGridViewRowCollection.IList.IndexOf(Object) メソッド

定義

コレクション内で指定した項目のインデックスを返します。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
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

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

戻り値

Int32

DataGridViewRow がリストに存在する場合は value のインデックス。それ以外の場合は -1。

実装

注釈

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

適用対象

こちらもご覧ください