Item Property

BindingSource.Item Property (Int32)


Gets or sets the list element at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual object this[
	int index
] { get; set; }


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

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
© 2015 Microsoft