ListBox.SelectedIndexCollection.Item[Int32] 属性

定义

获取此集合内指定索引处的索引值。Gets the index value at the specified index within this collection.

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

集合中要获取的项的索引。The index of the item in the collection to get.

属性值

存储在指定位置的 ListBox.ObjectCollection 中的索引值。The index value from the ListBox.ObjectCollection that is stored at the specified location.

异常

index 参数或者小于零,或者大于或等于 Count 类的 ListBox.SelectedIndexCollection 属性的值。The index parameter is less than zero or greater than or equal to the value of the Count property of the ListBox.SelectedIndexCollection class.

注解

此索引器可用于从 @no__t 获取特定的所选索引。This indexer enables you to get a specific selected index from the ListBox.SelectedIndexCollection. 存储在集合中的索引是表示 ListBox 中的选定项的 @no__t 的 @no__t 0 的索引。The index stored in the collection is an index into the ListBox.ObjectCollection of the ListBox that represents a selected item in the ListBox.

适用于