ListView.SelectedIndexCollection.IList.Insert(Int32, Object) 方法

定义

将某个项插入到集合中的指定索引处。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
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 的从零开始的索引。

value
Object

要插入 ListView.SelectedIndexCollection 中的对象。

实现

例外

始终引发。

注解

不能直接更改 ListView.SelectedIndexCollection 类。 To add the index of a ListViewItem to the ListView.SelectedIndexCollection, use the Selected property.

适用于