ItemTreeNodeTNode, TItemCopyTo(TNode, FuncTNode, Boolean, NullableInt32) Method
Deep copy this to node of same type starting at destination parent; uses a filtering predicate; items will be reference copies.
The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.
Namespace: MobileTrack.Common.Models.TreeViews.ItemTreeAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public void CopyTo(
TNode destParent,
Func<TNode, bool> allowNext,
int? maxRelativeDepth = null
)
Parameters
- destParent TNode
- Parent/root destination node
- allowNext FuncTNode, Boolean
- Predicate determining eligibility of source node and its descendants
- maxRelativeDepth NullableInt32 (Optional)
- Max depth of traversal (relative to this node)