DataGridViewCellCollection.IList.RemoveAt(Int32) メソッド

定義

指定したインデックスにある DataGridViewCell を削除します。

 virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt

パラメーター

index
Int32

DataGridViewCell を削除する位置。

実装

例外

この DataGridViewCellCollection を所有する行は、既に DataGridView コントロールに属しています。

注釈

コントロールに行を追加すると、その行に含まれるセルの数は常にコントロール内の列数と一致するため、このメソッドは役に立たなくなります。

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

適用対象

こちらもご覧ください