class NotifyCollectionChangedEventArgs
in global :: System . Collections . Specialized
Provides data for the event.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action )
Initializes a new instance of the class that describes a change.
actionThe action that caused the event. This must be set to .
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, IList changedItems )
Initializes a new instance of the class that describes a multi-item change.
actionThe action that caused the event. This can be set to , , or .changedItemsThe items that are affected by the change.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, IList newItems, IList oldItems )
Initializes a new instance of the class that describes a multi-item change.
actionThe action that caused the event. This can only be set to .newItemsThe new items that are replacing the original items.oldItemsThe original items that are replaced.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex )
Initializes a new instance of the class that describes a multi-item change.
actionThe action that caused the event. This can only be set to .newItemsThe new items that are replacing the original items.oldItemsThe original items that are replaced.startingIndexThe index of the first item of the items that are being replaced.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, IList changedItems, int startingIndex )
Initializes a new instance of the class that describes a multi-item change or a change.
actionThe action that caused the event. This can be set to , , or .changedItemsThe items affected by the change.startingIndexThe index where the change occurred.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex )
Initializes a new instance of the class that describes a multi-item change.
actionThe action that caused the event. This can only be set to .changedItemsThe items affected by the change.indexThe new index for the changed items.oldIndexThe old index for the changed items.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, object changedItem )
Initializes a new instance of the class that describes a one-item change.
actionThe action that caused the event. This can be set to , , or .changedItemThe item that is affected by the change.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, object changedItem, int index )
Initializes a new instance of the class that describes a one-item change.
actionThe action that caused the event. This can be set to , , or .changedItemThe item that is affected by the change.indexThe index where the change occurred.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex )
Initializes a new instance of the class that describes a one-item change.
actionThe action that caused the event. This can only be set to .changedItemThe item affected by the change.indexThe new index for the changed item.oldIndexThe old index for the changed item.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, object newItem, object oldItem )
Initializes a new instance of the class that describes a one-item change.
actionThe action that caused the event. This can only be set to .newItemThe new item that is replacing the original item.oldItemThe original item that is replaced.
public NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction action, object newItem, object oldItem, int index )
Initializes a new instance of the class that describes a one-item change.
actionThe action that caused the event. This can be set to .newItemThe new item that is replacing the original item.oldItemThe original item that is replaced.indexThe index of the item being replaced.
public NotifyCollectionChangedAction Action { get; }
Gets the action that caused the event.
- Returns A value that describes the action that caused the event.
public IList NewItems { get; }
Gets the list of new items involved in the change.
- Returns The list of new items involved in the change.
public int NewStartingIndex { get; }
Gets the index at which the change occurred.
- Returns The zero-based index at which the change occurred.
public IList OldItems { get; }
Gets the list of items affected by a , Remove, or Move action.
- Returns The list of items affected by a , Remove, or Move action.
public int OldStartingIndex { get; }
Gets the index at which a , Remove, or Replace action occurred.
- Returns The zero-based index at which a , Remove, or Replace action occurred.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.