ListViewGroupCollection::Item Property (Int32)
.NET Framework (current version)
Gets or sets the ListViewGroup at the specified index within the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ListViewGroup^ default[ int index ] { ListViewGroup^ get(int index); void set(int index, ListViewGroup^ value); }
Parameters
- index
-
Type:
System::Int32
The index within the collection of the ListViewGroup to get or set.
Property Value
Type: System.Windows.Forms::ListViewGroup^The ListViewGroup at the specified index within the collection.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0 or greater than or equal to Count. |
Use this property to retrieve the group at the specified index within the collection. When you have a reference to the group object and need the index, use the IndexOf method.
.NET Framework
Available since 2.0
Available since 2.0
Show: