語言

TableCellCollection.IList.Insert(Int32, Object) 方法

定義

在指定的索引處將物件插入集合。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ o) = System::Collections::IList::Insert;
void IList.Insert(int index, object o);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, o As Object) Implements IList.Insert

參數

index
Int32

集合中插入物件的零基索引。

o
Object

要插入收藏的物件。

實作

備註

通常,你應該用這個 AddAt 方法來為物件添加元素 TableCellCollection 。

此 IList.Insert 方法是一種明確的介面成員實作。 它只能在實 TableCellCollection 例投射到 IList 介面時使用。

適用於

另請參閱