Szerkesztés

Megosztás a következőn keresztül:


BindingList<T>.InsertItem(Int32, T) Method

Definition

Inserts the specified item in the list at the specified index.

protected:
 override void InsertItem(int index, T item);
protected override void InsertItem (int index, T item);
override this.InsertItem : int * 'T -> unit
Protected Overrides Sub InsertItem (index As Integer, item As T)

Parameters

index
Int32

The zero-based index where the item is to be inserted.

item
T

The item to insert in the list.

Remarks

InsertItem performs the following operations:

  • Calls EndNew to commit any uncommitted items added through the AddingNew event.

  • Inserts the item at the specified index

  • Raises a ListChanged event of type ItemAdded indicating the index of the item that was inserted.

Applies to