ListBox.SelectedIndexCollection.Item[Int32] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此集合中指定索引处的索引值。
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索引是表示所选项的索引ListBox。ListBox