Click or drag to resize
NotifyCollectionChangedEventArgs Class
Provides data for the System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged event.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    System.Collections.SpecializedNotifyCollectionChangedEventArgs

Namespace: System.Collections.Specialized
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public class NotifyCollectionChangedEventArgs : EventArgs

The NotifyCollectionChangedEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a System.Collections.Specialized.NotifyCollectionChangedAction.Reset change.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item change.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a one-item change. Throws an exception if action is not Reset, Add, or Remove, or if action is Reset and changedItem is not null.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item System.Collections.Specialized.NotifyCollectionChangedAction.Replace change. Exceptions: System.ArgumentException: If action is not Replace. System.ArgumentNullException: If oldItems or newItems is null.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item change or a System.Collections.Specialized.NotifyCollectionChangedAction.Reset change. Exceptions: System.ArgumentException: If action is not Reset, Add, or Remove, if action is Reset and either changedItems is not null or startingIndex is not -1, or if action is Add or Remove and startingIndex is less than -1. System.ArgumentNullException: If action is Add or Remove and changedItems is null.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a one-item change. Exceptions: System.ArgumentException: If action is not Reset, Add, or Remove, or if action is Reset and either changedItems is not null or index is not -1.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a one-item System.Collections.Specialized.NotifyCollectionChangedAction.Replace change. System.ArgumentException: If action is not Replace.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item System.Collections.Specialized.NotifyCollectionChangedAction.Replace change. Exceptions: System.ArgumentException: If action is not Replace. System.ArgumentNullException: If oldItems or newItems is null.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, Int32, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item System.Collections.Specialized.NotifyCollectionChangedAction.Move change. Exceptions: System.ArgumentException: If action is not Move or index is less than 0.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Int32, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a one-item System.Collections.Specialized.NotifyCollectionChangedAction.Move change. Exceptions: System.ArgumentException: If action is not Move or index is less than 0.
Public methodNotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, Object, Object, Int32)
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a one-item System.Collections.Specialized.NotifyCollectionChangedAction.Replace change. Exceptions: System.ArgumentException: If action is not Replace.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAction
Gets the action that caused the event. Returns a System.Collections.Specialized.NotifyCollectionChangedAction value that describes the action that caused the event.
Public propertyNewItems
Gets the list of new items involved in the change. Returns the list of new items involved in the change.
Public propertyNewStartingIndex
Gets the index at which the change occurred. Returns the zero-based index at which the change occurred.
Public propertyOldItems
Gets the list of items affected by a System.Collections.Specialized.NotifyCollectionChangedAction.Replace, Remove, or Move action. Returns he list of items affected by a System.Collections.Specialized.NotifyCollectionChangedAction.Replace, Remove, or Move action.
Public propertyOldStartingIndex
Gets the index at which a System.Collections.Specialized.NotifyCollectionChangedAction.Move, Remove, or Replace action occurred. Returns the zero-based index at which a System.Collections.Specialized.NotifyCollectionChangedAction.Move, Remove, or Replace action occurred.
Top
See Also