BindingSource::Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the list element at the specified index.

Namespace:   System.Windows.Forms
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.

Property Value

Type: System::Object^

The element at the specified index.

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
Return to top
Show: