IVectorChangedEventArgs IVectorChangedEventArgs IVectorChangedEventArgs IVectorChangedEventArgs IVectorChangedEventArgs Interface


Provides data for the changed event of a vector.

public : interface IVectorChangedEventArgs
struct winrt::Windows::Foundation::Collections::IVectorChangedEventArgs
public interface IVectorChangedEventArgs
Public Interface IVectorChangedEventArgs
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)


IVectorChangedEventArgs is specifically used for the VectorChanged event of the IObservableVector; interface, via the VectorChangedEventHandler delegate.

.NET developers can get instances of this interface via handling the VectorChanged event from an IObservableVector instance. Even though the remainder of the collection support for IObservableVector uses language projections that change IVector; APIs to IList APIs, the VectorChanged event, its delegates and its event data aren't changed by the projection and so "Vector" (as opposed to "List") remains in the API names.


CollectionChange CollectionChange CollectionChange CollectionChange CollectionChange

Gets the type of change that occurred in the vector.

public : CollectionChange CollectionChange { get; }
CollectionChange CollectionChange();
public CollectionChange CollectionChange { get; }
Public ReadOnly Property CollectionChange As CollectionChange
var collectionChange = iVectorChangedEventArgs.collectionChange;
CollectionChange CollectionChange CollectionChange

The type of change in the vector.

Index Index Index Index Index

Gets the position where the change occurred in the vector.

public : unsigned int Index { get; }
uint32_t Index();
public uint Index { get; }
Public ReadOnly Property Index As uint
var uint = iVectorChangedEventArgs.index;
uint uint uint

The zero-based position where the change occurred in the vector, if applicable.

See Also