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 パラメーターが 0 未満であるか、Count クラスの ListBox.SelectedObjectCollection プロパティの値以上です。

注釈

このインデクサーを使用すると、 ListBox.SelectedObjectCollectionから特定の項目を取得できます。 このコレクションに格納されている項目は、ListBox.ObjectCollectionで選択した項目を表すListBoxListBox内の項目です。

適用対象