New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for the CollectionChanged event.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class NotifyCollectionChangedEventArgs : EventArgs

Inheritance: objectEventArgsNotifyCollectionChangedEventArgs

Derived Classes: GridViewCollectionChangedEventArgs

Inherited Members EventArgs.Empty

Constructors

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)
Parameters:actionNotifyCollectionChangedActionnewItemsIListoldItemsIListstartingIndexint

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)
Parameters:actionNotifyCollectionChangedActionnewItemsIListoldItemsIList

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemsIListindexintoldIndexint

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemsIListstartingIndexint

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems)
Parameters:actionNotifyCollectionChangedActionchangedItemsIList

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemobjectindexintoldIndexint

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)
Parameters:actionNotifyCollectionChangedActionchangedItemobjectindexint

Initializes a new instance of the NotifyCollectionChangedEventArgs class.

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, string propertyName)
Parameters:actionNotifyCollectionChangedAction

The action.

newItemobject

The new item.

oldItemobject

The old item.

indexint

The index.

propertyNamestring

Name of the property.

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)
Parameters:actionNotifyCollectionChangedActionnewItemobjectoldItemobjectindexint

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)
Parameters:actionNotifyCollectionChangedActionnewItemobjectoldItemobject

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem)
Parameters:actionNotifyCollectionChangedActionchangedItemobject

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

C#
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action)
Parameters:actionNotifyCollectionChangedAction

The action that caused the event. This must be set to Reset.

Properties

Provides data for the CollectionChanged event.

C#
public NotifyCollectionChangedAction Action { get; protected set; }

Gets the list of new items involved in the change.

C#
public IList NewItems { get; protected set; }

Gets the index at which the change occurred.

C#
public int NewStartingIndex { get; protected set; }

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

C#
public IList OldItems { get; protected set; }

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

C#
public int OldStartingIndex { get; protected set; }

Gets the name of the changed property when the Action is ItemChanged.

C#
public string PropertyName { get; protected set; }

Gets the reason for a Reset notification.

C#
public CollectionResetReason ResetReason { get; }