Click or drag to resize

ListExtensionsMoveSelectedItemsTowardsLowerIndicesT Method

Moves the selected items towards lower indices.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void MoveSelectedItemsTowardsLowerIndices<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. Has to be a positive value.

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