ListView.CheckedIndexCollection.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 或大于或等于属性Count的值ListView.CheckedIndexCollection

注解

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

适用于