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 Members

Public:

Constructor

TreeNode Constructor Overloaded. [To be supplied.]

Properties

BackColor The background color of this node. If null, the color used will be the default color from the TreeView control that this node is attached to
Bounds The bounding rectangle for the node. The coordinates are relative to the upper left corner of the TreeView control.
Checked Indicates whether the node's checkbox is checked.
Extension Retrieves a filename extension to save this object's persistance data with.
FirstNode The first child node of this node.
ForeColor The foreground color of this node. If null, the color used will be the default color from the TreeView control that this node is attached to
FullPath Returns the full path of this node. The path consists of the labels of each of the nodes from the root to this node, each separated by the pathSeperator.
Handle The HTREEITEM handle associated with this node. If the handle has not yet been created, this will force handle creation.
ImageIndex The index of the image to be displayed when the node is in the unselected state. The image is contained in the ImageList referenced by the imageList property.
Index Returns the position of this node in relation to its siblings
IsEditing Specifies whether this node is being edited by the user.
IsExpanded Specifies whether this node is in the expanded state.
IsSelected Specifies whether this node is in the selected state.
IsVisible Specifies whether this node is visible.
LastNode The last child node of this node.
NextNode The next sibling node.
NextVisibleNode The next visible node. It may be a child, sibling, or a node from another branch.
NodeFont The font that will be used to draw this node If null, the font used will be the default font from the TreeView control that this node is attached to. NOTE: If the node font is larger than the default font from the TreeView control, then the node will be clipped.
Nodes [To be supplied.]
Parent Retrieves parent node.
PrevNode The previous sibling node.
PrevVisibleNode The next visible node. It may be a parent, sibling, or a node from another branch.
SelectedImageIndex The index of the image displayed when the node is in the selected state. The image is contained in the ImageList referenced by the imageList property.
Text The label text for the tree node
TreeView Return the TreeView control this node belongs to.

Methods

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:

Methods

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