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 介面時,才能使用這個成員。

適用於

另請參閱