Table of Contents

Method OnItemInserted

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

OnItemInserted(object?, int, T)

Invoked after an item has been inserted into the collection.

protected virtual void OnItemInserted(object? sender, int index, T item)

Parameters

sender object

The source of the event, typically the collection that triggered the insertion.

index int

The zero-based index at which the item was inserted.

item T

The item that was inserted into the collection.

Remarks

This method is called to notify derived classes of an item insertion. Subclasses can override this method to perform custom logic in response to the insertion.