DataGridViewSelectedRowCollection::IList::Item Property (Int32)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Gets the element at the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
private: property Object^ default[ int index ] { virtual Object^ get(int index) sealed = IList::default::get; virtual void set(int index, Object^ value) sealed = IList::default::set; }
Parameters
- index
-
Type:
System::Int32
The index of the element to get from the DataGridViewSelectedRowCollection.
Implements
IList::Item[Int32]| Exception | Condition |
|---|---|
| NotSupportedException | The property is set. |
| ArgumentOutOfRangeException | index is less than 0. -or- index is equal to or greater than the number of rows in the collection. |
This member is an explicit interface member implementation. It can be used only when the DataGridViewSelectedRowCollection instance is cast to an IList interface.
.NET Framework
Available since 2.0
Available since 2.0
Show: