Table of Contents

Method OnItemRemoved

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

OnItemRemoved(object?, int, MenuItem)

Invoked when an item is removed from the collection.

protected override void OnItemRemoved(object? sender, int index, MenuItem item)

Parameters

sender object

The source of the event, typically the collection from which the item was removed.

index int

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

item MenuItem

The item that was removed from the collection.

Remarks

This method is called to notify derived classes of item removal. Override this method in a subclass to handle the event when an item is removed.