PartitionableListTCreatePartialView(FuncT, Boolean, ActionT) Method |
Creates a partial view. A partial view is a view of the list of items of the original collection, that fulfill a certain condition.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public IObservableList<T> CreatePartialView(
Func<T, bool> selectionCriterium,
Action<T> actionBeforeInsertion
)
Parameters
- selectionCriterium FuncT, Boolean
-
The selection condition.
If this function returns true on an item of the original collection, that item is member of the partial view.
Note that during the lifetime of the partition, the behaviour of the selection criterion must not change.
- actionBeforeInsertion ActionT
- Action that is executed on an item before it is inserted.
Return Value
IObservableListTList of items of the original collection, that fullfils the selection condition. The returned list is automatically updated, when the original collection changed or when
the user changed the partial view itself.
See Also