ListView::ListViewItemCollection::Item Property (Int32)
.NET Framework (current version)
Gets or sets the item at the specified index within the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ListViewItem^ default[ int index ] { virtual ListViewItem^ get(int index); virtual void set(int index, ListViewItem^ value); }
Parameters
- index
-
Type:
System::Int32
The index of the item in the collection to get or set.
Property Value
Type: System.Windows.Forms::ListViewItem^A ListViewItem representing the item located at the specified index within the collection.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index parameter is less than 0 or greater than or equal to the value of the Count property of the ListView::ListViewItemCollection. |
You can use this method to obtain the ListViewItem stored at a specific location in the collection. To determine the index of a specific item in the collection, use the IndexOf method.
.NET Framework
Available since 1.1
Available since 1.1
Show: