共用方式為


DataGridViewSelectedRowCollection.IList.RemoveAt(Int32) 方法

定義

實施該 RemoveAt(Int32) 方法。 總是投擲 NotSupportedException

 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

要移除的項目的零基指數。

實作

例外狀況

總是被拋出。

備註

你不能直接更換 DataGridViewSelectedRowCollection 職業。 要從 中移除一列, DataGridViewSelectedRowCollection請使用 屬性 DataGridViewBand.Selected

此成員為明確介面成員實作。 它只能在實 DataGridViewSelectedRowCollection 例投射到 IList 介面時使用。

適用於

另請參閱