ListBox.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

要获取的集合中项的索引。

属性值

存储在指定位置的索引值 ListBox.ObjectCollection

例外

参数index小于零或大于或等于类的属性Count的值ListBox.SelectedIndexCollection

注解

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

适用于