ListView.ListViewItemCollection.IList.Item[Int32] プロパティ

定義

コレクション内の指定したインデックス位置にある ListViewItem を取得または設定します。

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
object? System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

パラメーター

index
Int32

取得する要素の 0 から始まるインデックス。

プロパティ値

コレクション内の指定したインデックス位置にある項目を表す ListViewItem

実装

例外

index パラメーターが 0 未満であるか、CountListView.ListViewItemCollection プロパティの値以上です。

注釈

itemパラメーターは、任意の型に設定できます。 itemListViewItemの場合は、ListView.ListViewItemCollectionに追加されます。 itemが別の型の場合は、ListViewItemToString メソッドの文字列を含む新しいitemが作成されます。

適用対象