DataGridViewSelectedColumnCollection.IList.Insert(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作 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
要加入 DataGridViewSelectedColumnCollection 的物件。
實作
例外狀況
一律擲回。
備註
您無法直接變更 DataGridViewSelectedColumnCollection 類別。 若要將資料行加入 至 DataGridViewSelectedColumnCollection ,請使用 DataGridViewBand.Selected 屬性。
這個成員是明確介面成員實作, 只有在 DataGridViewSelectedColumnCollection 執行個體轉換成 IList 介面時,才能使用這個成員。