Click or drag to resize

ExtensionsMoveT Method

Moves the specified item to a new location in the collection

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static void Move<T>(
	this ObservableCollection<T> source,
	T entry,
	int relativeIndex
)

Parameters

source
Type: System.Collections.ObjectModelObservableCollectionT
The source collection that contains the item
entry
Type: T
The item to move
relativeIndex
Type: SystemInt32
The new position of the item relativ to its current position.

Type Parameters

T
The Type of item contained in the collection

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ObservableCollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also