DataGridViewCellCollection.IList.RemoveAt(Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したインデックスにある 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 インターフェイスにキャストされる場合のみ、使用できます。