Click or drag to resize

ListExtensions Class

Supports movement of selected items up/down in a list.
Inheritance Hierarchy
SystemObject
  Altaxo.CollectionsListExtensions

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class ListExtensions

The ListExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAddRangeT(ICollectionT, IEnumerableT) Adds a range of items to a collection.
Public Extension MethodAddRangeT(ObservableCollectionT, IEnumerableT) 
Public Extension MethodExchangePositionsT Exchange the positions of two items in a list.
Public Extension MethodFillWithT(T, T) Fills an array with a specified value.
Public Extension MethodFillWithT(ICollectionT, IEnumerableT) 
Public Extension MethodFillWithT(ObservableCollectionT, IEnumerableT) 
Public Extension MethodGetPossibleStepsToMoveTowardsHigherIndicesT Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
Public Extension MethodGetPossibleStepsToMoveTowardsLowerIndicesT Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
Public Extension MethodIndexOfT Gets the index of an item in a enumeration or list.
Public Extension MethodIndexOfFirstT(IEnumerableT, FuncT, Boolean) Gets the index the of first item in list that fulfills the predicate predicate
Public Extension MethodIndexOfFirstT(IEnumerableT, FuncT, Int32, Boolean) Gets the index the of first item in list that fulfills the predicate predicate
Public Extension MethodIndexOfLastT Gets the index the of last item in list that fulfills the predicate predicate
Public Extension MethodMoveItemToIndexT Moves a item to another list position. All items inbetween the interval originalIndex and destinationIndex will slip by one position (except the item at originalIndex, which will of course move to destinationIndex.
Public Extension MethodMoveSelectedItemsT Moves the selected items towards higher indices (for steps > 0) or lower indices (for steps < 0).
Public Extension MethodMoveSelectedItemsToMaximumIndexT Moves the selected item so that the selected item with the formerly highest index is afterwards at the end of the list (at index list.Count-1).
Public Extension MethodMoveSelectedItemsToMinimumIndexT Moves the selected item so that the selected item with the formerly lowest index is afterwards at the start of the list (at index 0).
Public Extension MethodMoveSelectedItemsTowardsHigherIndicesT Moves the selected items towards higher indices.
Public Extension MethodMoveSelectedItemsTowardsLowerIndicesT Moves the selected items towards lower indices.
Public Extension MethodRemoveWhereT(IListT, FuncT, Boolean) Removes all items for which the predicate function returns true.
Public Extension MethodRemoveWhereT(IListT, FuncT, Int32, Boolean) Removes all items for which the predicate function returns true.
Top
See Also