Supports movement of selected items up/down in a list.
Inheritance Hierarchy Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public 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) | |
| ExchangePositionsT |
Exchange the positions of two items in a list.
|
| FillWithT(T, T) |
Fills an array with a specified value.
|
| FillWithT(ICollectionT, IEnumerableT) | |
| FillWithT(ObservableCollectionT, IEnumerableT) | |
| GetPossibleStepsToMoveTowardsHigherIndicesT |
Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
|
| GetPossibleStepsToMoveTowardsLowerIndicesT |
Return 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 a enumeration or list.
|
| IndexOfFirstT(IEnumerableT, FuncT, Boolean) |
Gets the index the of first item in list that fulfills the predicate predicate |
| IndexOfFirstT(IEnumerableT, FuncT, Int32, Boolean) |
Gets the index the of first item in list that fulfills the predicate predicate |
| IndexOfLastT |
Gets the index the of last item in list that fulfills the predicate predicate |
| MoveItemToIndexT |
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.
|
| 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. |
TopSee Also