BindingSource::Item Property (Int32)
.NET Framework (current version)
Gets or sets the list element at the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property Object^ default[ int index ] { virtual Object^ get(int index); virtual void set(int index, Object^ value); }
Parameters
- index
-
Type:
System::Int32
The zero-based index of the element to retrieve.
Implements
IList::Item[Int32]| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero or is equal to or greater than Count. |
The Item property represents the indexer for this class. It accepts null as a valid value and allows duplicate items within the list.
Setting a value will raise the ListChanged event.
.NET Framework
Available since 2.0
Available since 2.0
Show: