<PackageReference Include="System.ObjectModel" Version="4.0.11-beta-23409" />

NotifyCollectionChangedEventArgs

Provides data for the CollectionChanged event.

Gets the action that caused the event.

public IList NewItems { get; }

Gets the list of new items involved in the change.

public int NewStartingIndex { get; }

Gets the index at which the change occurred.

public IList OldItems { get; }

Gets the list of items affected by a Replace, Remove, or Move action.

public int OldStartingIndex { get; }

Gets the index at which a Move, Remove, or Replace action occurred.

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a Reset change.

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change or a Reset change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Move change.

public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)

Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Move change.