FastBindingListTInsertItem Method
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
protected override void InsertItem(
int index,
T item
)
Protected Overrides Sub InsertItem (
index As Integer,
item As T
)
protected:
virtual void InsertItem(
int index,
T item
) override
abstract InsertItem :
index : int *
item : 'T -> unit
override InsertItem :
index : int *
item : 'T -> unit
Parameters
- index Int32
- The zero-based index at which item should be inserted.
- item T
- The object to insert.
InsertItem performs the following operations:
- Calls EndNew to commit the last possible uncommitted item added by the AddNew method.
- Inserts the item at the specified index.
- Raises a ListChanged event of type ItemChanged indicating the index of the item that was inserted.