TableCellCollection.IList.Insert(Int32, Object) 方法
定义
将对象插入到集合中的指定索引处。Inserts an object into the collection at the specified index.
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
集合中要插入对象的位置的从零开始的索引。The zero-based index within the collection at which to insert the object.
- o
- Object
要插入到集合中的对象。The object to insert into the collection.
实现
注解
通常,应使用 AddAt 方法将元素添加到 TableCellCollection 对象。Typically, you should use the AddAt method to add an element to a TableCellCollection object.
IList.Insert方法是显式接口成员实现。The IList.Insert method is an explicit interface member implementation. 它只能在 TableCellCollection 实例被强制转换为 IList 接口时使用。It can be used only when the TableCellCollection instance is cast to an IList interface.