In This Article

CollectionChangeEventArgs<T> Class

Event arguments for various SimpleObservableCollection<T> change events.

public class CollectionChangeEventArgs<T> : EventArgs
Type Parameters:
T -

The Type of item.

Inheritance:
object EventArgs object

Constructors

CollectionChangeEventArgs(int, T)

Initializes a new instance of the CollectionChangeEventArgs class.

public CollectionChangeEventArgs(int index, T item)
Parameter Type Description
index int

The index at which the item is/was located.

item T

The T that is affected by this event.

Properties

Index

Gets the index at which the item is/was located.

public int Index { get; }

Property Value

int:

The index at which the item is/was located.

Item

Gets the T that is affected by this event.

public T Item { get; }

Property Value

T:

The T that is affected by this event.

Inherited Members