Method OnItemRemoved
OnItemRemoved(object?, int, StatusBarPanel)
Invoked when an item is removed from the panels collection.
protected virtual void OnItemRemoved(object? sender, int index, StatusBarPanel item)
Parameters
senderobjectThe source of the event, typically the collection that raised the event. Can be null.
indexintThe zero-based index at which the item was removed.
itemStatusBarPanelThe StatusBarPanel instance that was removed. This parameter is never null.
Remarks
This method detaches event handlers from the removed item and updates the state of the status bar panels. Subclasses can override this method to provide additional behavior when an item is removed.