ClassNotifyCollectionChangedEventArgs
Provides data for the CollectionChanged event.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class NotifyCollectionChangedEventArgs : EventArgs
Inheritance: objectEventArgsNotifyCollectionChangedEventArgs
Derived Classes:
Inherited Members
Constructors
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a Reset change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action)
Parameters
action
The action that caused the event. This must be set to Reset.
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems)
Parameters
action
changedItems
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)
Parameters
action
newItems
oldItems
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Replace change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)
Parameters
action
newItems
oldItems
startingIndex
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change or a reset change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)
Parameters
action
changedItems
startingIndex
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, int, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Move change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)
Parameters
action
changedItems
index
oldIndex
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem)
Parameters
action
changedItem
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)
Parameters
action
changedItem
index
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, int, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Move change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
Parameters
action
changedItem
index
oldIndex
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)
Parameters
action
newItem
oldItem
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, int)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item Replace change.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)
Parameters
action
newItem
oldItem
index
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, int, string)
Initializes a new instance of the NotifyCollectionChangedEventArgs class.
Declaration
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, string propertyName)
Parameters
action
The action.
newItem
The new item.
oldItem
The old item.
index
The index.
propertyName
Name of the property.
Properties
Action
Provides data for the CollectionChanged event.
Declaration
public NotifyCollectionChangedAction Action { get; protected set; }
Property Value
NewItems
Gets the list of new items involved in the change.
NewStartingIndex
Gets the index at which the change occurred.
Declaration
public int NewStartingIndex { get; protected set; }
Property Value
OldItems
Gets the list of items affected by a Replace, Remove, or Move action.
OldStartingIndex
Gets the index at which a Move, Remove, ore Replace action occurred.
Declaration
public int OldStartingIndex { get; protected set; }
Property Value
PropertyName
Gets the name of the changed property when the Action is ItemChanged.
Declaration
public string PropertyName { get; protected set; }
Property Value
ResetReason
Gets the reason for a Reset notification.
Declaration
public CollectionResetReason ResetReason { get; }
Property Value