 | LogicalNodeViewModelSearchSibling method |
Searches for a node in a tree branch for a given index hierarchy in the "indices" stack.
Namespace: Vishnu.ViewModelAssembly: Vishnu.ViewModel (in Vishnu.ViewModel.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxprotected LogicalNodeViewModel? SearchSibling(
ObservableCollection<LogicalNodeViewModel> sourceTree,
Stack<int> indices
)
Protected Function SearchSibling (
sourceTree As ObservableCollection(Of LogicalNodeViewModel),
indices As Stack(Of Integer)
) As LogicalNodeViewModel
protected:
LogicalNodeViewModel^ SearchSibling(
ObservableCollection<LogicalNodeViewModel^>^ sourceTree,
Stack<int>^ indices
)
member SearchSibling :
sourceTree : ObservableCollection<LogicalNodeViewModel> *
indices : Stack<int> -> LogicalNodeViewModel
Parameters
- sourceTree ObservableCollectionLogicalNodeViewModel
- The branch to be searched.
- indices StackInt32
- A stack with cached indices on each hierarchy level up to a target node.
Return value
LogicalNodeViewModelA LogicalNodeViewModel found or null.
See also