C#
VB
Java
WinRT C#
Occurs when the collection changes.
public event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged
Event CollectionChanged As EventHandler(Of AnnNotifyCollectionChangedEventArgs)
event EventHandler<AnnNotifyCollectionChangedEventArgs> CollectionChanged
void addCollectionChangedListener(AnnNotifyCollectionChangedListener listener);
void removeCollectionChangedListener(AnnNotifyCollectionChangedListener listener);
add_CollectionChanged(function(sender, e))
remove_CollectionChanged(function(sender, e))
The event handler receives an argument of type AnnNotifyCollectionChangedEventArgs containing data related to this event. The following AnnNotifyCollectionChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Gets the action that caused the event. |
NewItems | Gets the list of new items involved in the change. |
NewStartingIndex | Gets the index at which the change occurred. |
OldItems | Gets the list of items affected by a Replace, Remove, or Move action. |
OldStartingIndex | Gets the index at which a Move, Remove, or Replace action occurred. |
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET