TextElementCollection<TextElementType>.IList.Insert(Int32, Object) 方法

定义

IList 中的指定索引处插入一个项。Inserts an item to the IList at the specified index. 请改用类型安全的 InsertAfter(TextElementType, TextElementType)InsertBefore(TextElementType, TextElementType) 方法。Use the type-safe InsertAfter(TextElementType, TextElementType) or InsertBefore(TextElementType, TextElementType) methods instead.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
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 的从零开始的索引。The zero-based index at which value should be inserted.

value
Object

要插入到 IList 中的对象。The object to insert into the IList.

实现

适用于