NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TreeNode Methods

The methods of the TreeNode class are listed below. For a complete list of TreeNode class members, see the TreeNode Members topic.

Public:

BeginEdit Initiate editing of the node's label. Only effective if LabelEdit property is true.
Clone Clone the entire subtree rooted at this node.
Collapse Collapse the node.
EndEdit Terminate the editing of any tree view item's label.
EnsureVisible Ensure that the node is visible, expanding nodes and scrolling the TreeView control as necessary.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Expand Expand the node.
ExpandAll Expand the node.
FromHandle Returns a TreeNode object for the given HTREEITEM handle
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject) This method is used return a lifetime service object that is used to control the lifetime policy to the object. For the default Lifetime service this will be an object of type ILease.
GetNodeCount Returns number of child nodes.
GetType (inherited from Object) Gets the Type of the Object.
InitializeLifetimeService (inherited from MarshalByRefObject)  
Remove Remove this node from the TreeView control. Child nodes are also removed from the TreeView, but are still attached to this node.
Toggle Toggle the state of the node. Expand if collapsed or collapse if expanded.
ToString Returns the label text for the tree node

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

TreeNode Class | System.WinForms Namespace