TreeNode::ToggleExpandState Method ()
.NET Framework (current version)
Alternates between the expanded and collapsed state of the node.
Assembly: System.Web (in System.Web.dll)
Use the ToggleExpandState method to alternate between an expanded and a collapsed state for the node. For example, if the node is collapsed, calling the ToggleExpandState method expands the node, and vice versa.
Note |
|---|
As an alternative, you can set the Expanded property directly. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
