Move Method
Collapse the table of content
Expand the table of content

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 4.5
.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