Version

OnListChanged(ListChangedType,Int32) Method

Called when items are added or removed from the collection.
Syntax
'Declaration
 
Protected Overloads Overridable Sub OnListChanged( _
   ByVal listChangedType As ListChangedType, _
   ByVal newIndex As Integer _
) 
protected virtual void OnListChanged( 
   ListChangedType listChangedType,
   int newIndex
)

Parameters

listChangedType
The type of change which has occurred in the collection.
newIndex
The index, if applicable, of the item which was changed.
Remarks

Derived classes should call this method after an item has been added or removed from the collection.

Derived classes should override this method if it is necessary to take any action after the collection is modified.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also