 | LogicalTaskTreeViewModelFlattenTree method |
Turns a transferred (sub)tree into a flat list.
Which node types are displayed in the list and which are not,
can be configured externally in the app.config via
"FlatNodeListFilter"
value="NodeConnector|ValueModifier|Constant|Checker|NodeList|JobList|Snapshot"
be determined.
Namespace: Vishnu.ViewModelAssembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic static ObservableCollection<LogicalNodeViewModel> FlattenTree(
LogicalNodeViewModel root,
ObservableCollection<LogicalNodeViewModel> flatNodeList,
NodeTypes flatNodeListFilter,
bool withRoot = true
)
Public Shared Function FlattenTree (
root As LogicalNodeViewModel,
flatNodeList As ObservableCollection(Of LogicalNodeViewModel),
flatNodeListFilter As NodeTypes,
Optional withRoot As Boolean = true
) As ObservableCollection(Of LogicalNodeViewModel)
public:
static ObservableCollection<LogicalNodeViewModel^>^ FlattenTree(
LogicalNodeViewModel^ root,
ObservableCollection<LogicalNodeViewModel^>^ flatNodeList,
NodeTypes flatNodeListFilter,
bool withRoot = true
)
static member FlattenTree :
root : LogicalNodeViewModel *
flatNodeList : ObservableCollection<LogicalNodeViewModel> *
flatNodeListFilter : NodeTypes *
?withRoot : bool
(* Defaults:
let _withRoot = defaultArg withRoot true
*)
-> ObservableCollection<LogicalNodeViewModel>
Parameters
- root LogicalNodeViewModel
- Root node of the (sub)tree.
- flatNodeList ObservableCollectionLogicalNodeViewModel
- ObservableCollection for recording the nodes.
- flatNodeListFilter NodeTypes
- Filter for node types that should not be included in the list.
- withRoot Boolean (Optional)
- If True, the root node is also included in the list (default: True).
Return value
ObservableCollectionLogicalNodeViewModelFlat list (ObservableCollection) of the nodes of the (sub)tree.
See also