System.Collections.ObjectModel.ObservableCollection<T>.Move Method

Moves the item at the specified index to a new location in the collection.

Syntax

public void Move (int oldIndex, int newIndex)

Parameters

oldIndex
The zero-based index specifying the location of the item to be moved.
newIndex
The zero-based index specifying the new location of the item.

Remarks

Subclasses can override the ObservableCollection`1.MoveItem(int, int) method to provide custom behavior for this method.

Requirements

Namespace: System.Collections.ObjectModel
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0