NotifyCollectionChangedEventArgs Class |
Namespace: System.Collections.Specialized
public class NotifyCollectionChangedEventArgs : EventArgs
The NotifyCollectionChangedEventArgs type exposes the following members.
Name | Description | |
---|---|---|
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction) |
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class
that describes a System.Collections.Specialized.NotifyCollectionChangedAction.Reset change.
| |
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList) |
Initializes a new instance of the System.Collections.Specialized.NotifyCollectionChangedEventArgs class that describes a multi-item change.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
| |
NotifyCollectionChangedEventArgs(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.
|
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Action |
Gets the action that caused the event. Returns a System.Collections.Specialized.NotifyCollectionChangedAction value that describes the action that caused the event.
| |
NewItems |
Gets the list of new items involved in the change. Returns the list of new items involved in the change.
| |
NewStartingIndex |
Gets the index at which the change occurred.
Returns the zero-based index at which the change occurred.
| |
OldItems |
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.
| |
OldStartingIndex |
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.
|