Edit

Share via


ObservableCollection<T>.Move(Int32, Int32) Method

Definition

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

public:
 void Move(int oldIndex, int newIndex);
public void Move(int oldIndex, int newIndex);
member this.Move : int * int -> unit
Public Sub Move (oldIndex As Integer, newIndex As Integer)

Parameters

oldIndex
Int32

The zero-based index specifying the ___location of the item to be moved.

newIndex
Int32

The zero-based index specifying the new ___location of the item.

Remarks

Subclasses can override the MoveItem method to provide custom behavior for this method.

Applies to