ClassNotifyCollectionChangingEventArgs
Provides data for the CollectionChanging event.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class NotifyCollectionChangingEventArgs : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsNotifyCollectionChangingEventArgs
Derived Classes:
Inherited Members
Constructors
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a Reset change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action)
Parameters
action
The action that caused the event. This must be set to Reset.
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems)
Parameters
action
changedItems
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, IList)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Replace change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)
Parameters
action
newItems
oldItems
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, IList, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Replace change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)
Parameters
action
newItems
oldItems
startingIndex
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item change or a reset change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)
Parameters
action
changedItems
startingIndex
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, int, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Move change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)
Parameters
action
changedItems
index
oldIndex
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem)
Parameters
action
changedItem
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)
Parameters
action
changedItem
index
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, int, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Move change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
Parameters
action
changedItem
index
oldIndex
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item Replace change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)
Parameters
action
newItem
oldItem
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object, int)
Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item Replace change.
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)
Parameters
action
newItem
oldItem
index
NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object, int, PropertyChangingEventArgsEx)
Declaration
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, PropertyChangingEventArgsEx propertyArgs)
Parameters
action
newItem
oldItem
index
propertyArgs
Properties
Action
Provides data for the CollectionChanging 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
PropertyArgs
Gets the property arguments when property changing has been fired.
Declaration
public PropertyChangingEventArgsEx PropertyArgs { get; protected set; }
Property Value
The property arguments.