TableCellCollection.IList.Insert(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處將物件插入集合。
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 介面時使用。