Name

ListChangedEventArgs

Synopsis

This class encapsulates the data for the IBindingList.ListChanged event. You can determine the OldIndex and NewIndex of the item that was changed. The ListChangedType determines what kind of change raised the event.


public class ListChangedEventArgs : EventArgs {

// Public Constructors

   public ListChangedEventArgs(

        ListChangedType listChangedType, int newIndex);

   public ListChangedEventArgs(

        ListChangedType listChangedType, int newIndex,

        int oldIndex);

   public ListChangedEventArgs(

        ListChangedType listChangedType,

        PropertyDescriptor propDesc);

// Public Instance Properties

   public ListChangedType ListChangedType{get; }

   public int NewIndex{get; }

   public int OldIndex{get; }

}

Hierarchy

System.Object System.EventArgs ListChangedEventArgs

Passed To

ListChangedEventHandler.{BeginInvoke(), Invoke()}

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.