Find a tree node in a TreeView.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function FindTreeNodeFromTag ( _
	treeView As TreeView, _
	tag As Object _
) As TreeNode
C#
public static TreeNode FindTreeNodeFromTag(
	TreeView treeView,
	Object tag
)

Parameters

treeView
Type: System.Windows.Forms..::..TreeView
The treeview to search in.
tag
Type: System..::..Object
The tag to search. Null value are not supported.

Return Value

Return the tree node if it's found or null if not found.

See Also