Move Method

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

 

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

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

public void Move(
	int oldIndex,
	int newIndex
)

Parameters

oldIndex
Type: System.Int32

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

newIndex
Type: System.Int32

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft