ListViewItem::ListViewSubItemCollection::Item Property (Int32)
.NET Framework (current version)
Gets or sets the subitem at the specified index within the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ListViewItem::ListViewSubItem^ default[ int index ] { ListViewItem::ListViewSubItem^ get(int index); void set(int index, ListViewItem::ListViewSubItem^ value); }
Parameters
- index
-
Type:
System::Int32
The index of the item in the collection to retrieve.
Property Value
Type: System.Windows.Forms::ListViewItem::ListViewSubItem^A ListViewItem::ListViewSubItem representing the subitem located at the specified index within the collection.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The index parameter is less than zero or greater than or equal to the value of the Count property of the ListViewItem::ListViewSubItemCollection. |
You can use this method to obtain the ListViewItem::ListViewSubItem 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: