Supports movement of selected items up/down in a list.
Inheritance Hierarchy Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static class ListExtensions
The ListExtensions type exposes the following members.
Methods| | Name | Description |
|---|
 | AddRangeT(ICollectionT, IEnumerableT) |
Adds a range of items to a collection.
|
 | AddRangeT(ObservableCollectionT, IEnumerableT) |
Adds a range of items to an ObservableCollection.
|
 | ExchangePositionsT |
Exchanges the positions of two items in a list.
|
 | FillWithT(T, T) |
Fills an array with a specified value.
|
 | FillWithT(ICollectionT, IEnumerableT) |
Clears and fills a collection with the specified items.
|
 | FillWithT(ObservableCollectionT, IEnumerableT) |
Clears and fills an ObservableCollection with the specified items.
|
 | GetPossibleStepsToMoveTowardsHigherIndicesT |
Returns the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
|
 | GetPossibleStepsToMoveTowardsLowerIndicesT |
Returns the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
|
 | IndexOfT |
Gets the index of an item in an enumeration or list.
|
 | IndexOfFirstT(IEnumerableT, FuncT, Boolean) |
Gets the index of the first item in list that fulfills the predicate predicate.
|
 | IndexOfFirstT(IEnumerableT, FuncT, Int32, Boolean) |
Gets the index of the first item in list that fulfills the predicate predicate.
|
 | IndexOfLastT |
Gets the index of the last item in list that fulfills the predicate predicate.
|
 | MoveItemToIndexT |
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).
|
 | MoveSelectedItemsT |
Moves the selected items towards higher indices (for steps > 0) or lower indices (for steps < 0).
|
 | MoveSelectedItemsToMaximumIndexT |
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).
|
 | MoveSelectedItemsToMinimumIndexT |
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).
|
 | MoveSelectedItemsTowardsHigherIndicesT |
Moves the selected items towards higher indices.
|
 | MoveSelectedItemsTowardsLowerIndicesT |
Moves the selected items towards lower indices.
|
 | RemoveWhereT(IListT, FuncT, Boolean) |
Removes all items for which the predicate function returns true.
|
 | RemoveWhereT(IListT, FuncT, Int32, Boolean) |
Removes all items for which the predicate function returns true.
|
Top
See Also