語言

ListBox.SelectedObjectCollection.Item[Int32] 屬性

定義

在集合中指定索引取得項目。

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
[System.ComponentModel.Browsable(false)]
public object this[int index] { get; set; }
[System.ComponentModel.Browsable(false)]
public object? this[int index] { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object

參數

index
Int32

集合中要檢索項目的索引。

屬性值

一個物件,代表位於集合中指定索引的項目。

實作

屬性

例外狀況

參數index小於零或大於或等於類別Count性質的值ListBox.SelectedObjectCollection。

備註

這個索引器讓你能從 中取得特定項目 ListBox.SelectedObjectCollection。 此集合中儲存的項目是 中ListBox.ObjectCollection代表 中所選項目ListBox的項目ListBox。

適用於