TreeNodeExtensionsNextNodeDepthFromRoot Method

Gets the next node by depth search, restricting the search to the children of the specified searchRoot.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static TreeNode? NextNodeDepthFromRoot(
	this TreeNode? node,
	TreeNode? searchRoot
)

Parameters

node  TreeNode
Start node
searchRoot  TreeNode
Root node above which searching is not performed

Return Value

TreeNode
The next node by depth search, or if no next node was found under searchRoot.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TreeNode. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also