Click or drag to resize

ListExtensionsMoveSelectedItemsT Method

Moves the selected items towards higher indices (for steps > 0) or lower indices (for steps < 0).

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void MoveSelectedItems<T>(
	this IList<T> list,
	Func<int, bool> IsSelected,
	int steps
)

Parameters

list  IListT
List to operate with.
IsSelected  FuncInt32, Boolean
Function that determines for each item index if it is selected or not.
steps  Int32
Number of steps to move. A positive value moves the items towards higher indices, a negative value towards lower indices.

Type Parameters

T
Type of list item.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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