TreeNode::Parent Property
.NET Framework (current version)
Gets the parent node of the current node.
Assembly: System.Web (in System.Web.dll)
The Parent property returns a TreeNode object that represents the parent node of the current node. It is commonly used to determine the parent node or to access the properties of the parent node.
Note |
|---|
A root node does not have a parent node. |
To access the child nodes of the current node, use the ChildNodes property.
.NET Framework
Available since 2.0
Available since 2.0
Show:
