DataGridViewSelectedRowCollection.IList.Insert(Int32, Object) メソッド

定義

Insert(Int32, Object) メソッドを実装します。 常に NotSupportedException をスローします。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
void IList.Insert (int index, object? value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

パラメーター

index
Int32

value を挿入する位置のインデックス番号。

value
Object

DataGridViewSelectedRowCollection に追加するオブジェクト。

実装

例外

常にスローされます。

注釈

クラスを DataGridViewSelectedRowCollection 直接変更することはできません。 に DataGridViewSelectedRowCollection行を追加するには、 プロパティを DataGridViewBand.Selected 使用します。

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

適用対象

こちらもご覧ください