DataGridViewSelectedCellCollection.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

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

実装

例外

常にスローされます。

注釈

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

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

適用対象

こちらもご覧ください