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.

  • action The 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.

  • action The action that caused the event. This can be set to , , or .
  • changedItems The 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.

  • action The action that caused the event. This can only be set to .
  • newItems The new items that are replacing the original items.
  • oldItems The 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.

  • action The action that caused the event. This can only be set to .
  • newItems The new items that are replacing the original items.
  • oldItems The original items that are replaced.
  • startingIndex The 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.

  • action The action that caused the event. This can be set to , , or .
  • changedItems The items affected by the change.
  • startingIndex The 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.

  • action The action that caused the event. This can only be set to .
  • changedItems The items affected by the change.
  • index The new index for the changed items.
  • oldIndex The 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.

  • action The action that caused the event. This can be set to , , or .
  • changedItem The 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.

  • action The action that caused the event. This can be set to , , or .
  • changedItem The item that is affected by the change.
  • index The 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.

  • action The action that caused the event. This can only be set to .
  • changedItem The item affected by the change.
  • index The new index for the changed item.
  • oldIndex The 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.

  • action The action that caused the event. This can only be set to .
  • newItem The new item that is replacing the original item.
  • oldItem The 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.

  • action The action that caused the event. This can be set to .
  • newItem The new item that is replacing the original item.
  • oldItem The original item that is replaced.
  • index The 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.