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

定义

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

C#
void IList.Insert(int index, object value);

参数

index
Int32

要插入的项的索引(索引从零开始)。

value
Object

要添加到 ListView.SelectedListViewItemCollection 的对象。

实现

例外

始终引发。

注解

不能直接更改 ListView.SelectedListViewItemCollection 类。 若要将 添加到 ListViewItemListView.SelectedListViewItemCollection请使用 Selected 属性。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10