Class
NotifyCollectionChangedEventArgs

Provides data for the CollectionChanged event.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class NotifyCollectionChangedEventArgs : EventArgs

Inheritance: objectEventArgsNotifyCollectionChangedEventArgs

Derived Classes: GridViewCollectionChangedEventArgs

Inherited Members EventArgs.Empty

Constructors

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action)

Parameters

action

NotifyCollectionChangedAction

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

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)

Parameters

action

NotifyCollectionChangedAction

newItems

IList

oldItems

IList

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, IList, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)

Parameters

action

NotifyCollectionChangedAction

newItems

IList

oldItems

IList

startingIndex

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

startingIndex

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, IList, int, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

index

int

oldIndex

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

index

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, int, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

index

int

oldIndex

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)

Parameters

action

NotifyCollectionChangedAction

newItem

object

oldItem

object

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, int)

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

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)

Parameters

action

NotifyCollectionChangedAction

newItem

object

oldItem

object

index

int

NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction, object, object, int, string)

Initializes a new instance of the NotifyCollectionChangedEventArgs class.

Declaration

cs-api-definition
public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, string propertyName)

Parameters

action

NotifyCollectionChangedAction

The action.

newItem

object

The new item.

oldItem

object

The old item.

index

int

The index.

propertyName

string

Name of the property.

Properties

Action

Provides data for the CollectionChanged event.

Declaration

cs-api-definition
public NotifyCollectionChangedAction Action { get; protected set; }

Property Value

NotifyCollectionChangedAction

NewItems

Gets the list of new items involved in the change.

Declaration

cs-api-definition
public IList NewItems { get; protected set; }

Property Value

IList

NewStartingIndex

Gets the index at which the change occurred.

Declaration

cs-api-definition
public int NewStartingIndex { get; protected set; }

Property Value

int

OldItems

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

Declaration

cs-api-definition
public IList OldItems { get; protected set; }

Property Value

IList

OldStartingIndex

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

Declaration

cs-api-definition
public int OldStartingIndex { get; protected set; }

Property Value

int

PropertyName

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

Declaration

cs-api-definition
public string PropertyName { get; protected set; }

Property Value

string

ResetReason

Gets the reason for a Reset notification.

Declaration

cs-api-definition
public CollectionResetReason ResetReason { get; }

Property Value

CollectionResetReason