ListView.SelectedIndexCollection.Item[Int32] 属性

定义

获取集合中指定索引处的索引值。

public:
 property int default[int] { int get(int index); };
public int this[int index] { get; }
member this.Item(int) : int
Default Public ReadOnly Property Item(index As Integer) As Integer

参数

index
Int32

要检索的集合中项的索引。

属性值

存储在指定位置的索引值 ListView.ListViewItemCollection

例外

index 小于 0 或大于或等于 CountListView.SelectedIndexCollection属性的值。

注解

使用此索引器可从中 ListView.SelectedIndexCollection获取特定的选定索引。 集合中存储的ListView.ListViewItemCollection索引是表示所选项的索引ListViewListView

适用于