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.3448.0 (4.8.3448.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) Adds a range of items to an ObservableCollection.
Public Extension MethodExchangePositionsT Exchanges 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) Clears and fills a collection with the specified items.
Public Extension MethodFillWithT(ObservableCollectionT, IEnumerableT) Clears and fills an ObservableCollection with the specified items.
Public Extension MethodGetPossibleStepsToMoveTowardsHigherIndicesT Returns 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 Returns 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 an enumeration or list.
Public Extension MethodIndexOfFirstT(IEnumerableT, FuncT, Boolean) Gets the index of the first item in list that fulfills the predicate predicate.
Public Extension MethodIndexOfFirstT(IEnumerableT, FuncT, Int32, Boolean) Gets the index of the first item in list that fulfills the predicate predicate.
Public Extension MethodIndexOfLastT Gets the index of the last item in list that fulfills the predicate predicate.
Public Extension MethodMoveItemToIndexT Moves an item to another list position. All items in between the interval originalIndex and destinationIndex will slip by one position (except the item at originalIndex, which will 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