ListView.ListViewItemCollection.IList.Item[Int32] プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コレクション内の指定したインデックス位置にある 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 未満であるか、Countの ListView.ListViewItemCollection プロパティの値以上です。
注釈
itemパラメーターは、任意の型に設定できます。
itemがListViewItemの場合は、ListView.ListViewItemCollectionに追加されます。
itemが別の型の場合は、ListViewItemの ToString メソッドの文字列を含む新しいitemが作成されます。