Insert Method

BindingSource.Insert Method (Int32, Object)

 

Inserts an item into the list at the specified index.

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

public virtual void Insert(
	int index,
	object value
)

Parameters

index
Type: System.Int32

The zero-based index at which value should be inserted.

value
Type: System.Object

The Object to insert. The value can be null.

Exception Condition
ArgumentOutOfRangeException

index is less than zero or greater than Count.

NotSupportedException

The list is read-only or has a fixed size.

This method raises the ListChanged event.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft