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
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, IList newItems, IList oldItems)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-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 change or a reset change.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item change.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a multi-item Move change.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
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.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, string propertyName)
The action.
newItemobjectThe new item.
oldItemobjectThe old item.
indexintThe index.
propertyNamestringName of the property.
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.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a one-item change.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem)
Initializes a new instance of the NotifyCollectionChangedEventArgs class that describes a Reset change.
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action)
The action that caused the event. This must be set to Reset.
Properties
Provides data for the CollectionChanged event.
public NotifyCollectionChangedAction Action { get; protected set; }
Gets the list of new items involved in the change.
public IList NewItems { get; protected set; }
Gets the index at which the change occurred.
public int NewStartingIndex { get; protected set; }
Gets the list of items affected by a Replace, Remove, or Move action.
public IList OldItems { get; protected set; }
Gets the index at which a Move, Remove, ore Replace action occurred.
public int OldStartingIndex { get; protected set; }
Gets the name of the changed property when the Action is ItemChanged.
public string PropertyName { get; protected set; }
Gets the reason for a Reset notification.
public CollectionResetReason ResetReason { get; }