語言

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索引ListBox,代表 中選定的項目ListBox。

適用於