Export (0) Print
Expand All

TreeNode Members

Represents a node of a TreeView.

The following tables list the members exposed by the TreeNode type.

(see also Protected Constructors )
  Name Description
Public method Supported by the .NET Compact Framework TreeNode Overloaded. Initializes a new instance of the TreeNode class.
Top

  Name Description
Protected method TreeNode Overloaded. Initializes a new instance of the TreeNode class.
Top

  Name Description
Public property Supported by the .NET Compact Framework BackColor Gets or sets the background color of the tree node.
Public property Bounds Gets the bounds of the tree node.
Public property Supported by the .NET Compact Framework Checked Gets or sets a value indicating whether the tree node is in a checked state.
Public property ContextMenu Gets the shortcut menu associated with this tree node.
Public property ContextMenuStrip Gets or sets the shortcut menu associated with this tree node.
Public property FirstNode Gets the first child tree node in the tree node collection.
Public property Supported by the .NET Compact Framework ForeColor Gets or sets the foreground color of the tree node.
Public property Supported by the .NET Compact Framework FullPath Gets the path from the root tree node to the current tree node.
Public property Supported by the .NET Compact Framework Handle Gets the handle of the tree node.
Public property Supported by the .NET Compact Framework ImageIndex Gets or sets the image list index value of the image displayed when the tree node is in the unselected state.
Public property ImageKey Gets or sets the key for the image associated with this tree node when the node is in an unselected state.
Public property Supported by the .NET Compact Framework Index Gets the position of the tree node in the tree node collection.
Public property IsEditing Gets a value indicating whether the tree node is in an editable state.
Public property Supported by the .NET Compact Framework IsExpanded Gets a value indicating whether the tree node is in the expanded state.
Public property Supported by the .NET Compact Framework IsSelected Gets a value indicating whether the tree node is in the selected state.
Public property IsVisible Gets a value indicating whether the tree node is visible or partially visible.
Public property LastNode Gets the last child tree node.
Public property Level Gets the zero-based depth of the tree node in the TreeView control.
Public property Name Gets or sets the name of the tree node.
Public property NextNode Gets the next sibling tree node.
Public property NextVisibleNode Gets the next visible tree node.
Public property NodeFont Gets or sets the font used to display the text on the tree node's label.
Public property Supported by the .NET Compact Framework Nodes Gets the collection of TreeNode objects assigned to the current tree node.
Public property Supported by the .NET Compact Framework Parent Gets the parent tree node of the current tree node.
Public property PrevNode Gets the previous sibling tree node.
Public property PrevVisibleNode Gets the previous visible tree node.
Public property Supported by the .NET Compact Framework SelectedImageIndex Gets or sets the image list index value of the image that is displayed when the tree node is in the selected state.
Public property SelectedImageKey Gets or sets the key of the image displayed in the tree node when it is in a selected state.
Public property StateImageIndex Gets or sets the index of the image used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false.
Public property StateImageKey Gets or sets the key of the image used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false.
Public property Supported by the .NET Compact Framework Tag Gets or sets the object that contains data about the tree node.
Public property Supported by the .NET Compact Framework Text Gets or sets the text displayed in the label of the tree node.
Public property ToolTipText Gets or sets the text that appears when the mouse pointer hovers over a TreeNode.
Public property Supported by the .NET Compact Framework TreeView Gets the parent tree view that the tree node is assigned to.
Top

(see also Protected Methods )
  Name Description
Public method BeginEdit Initiates the editing of the tree node label.
Public method Supported by the .NET Compact Framework Clone Copies the tree node and the entire subtree rooted at this tree node.
Public method Supported by the .NET Compact Framework Collapse Overloaded. Collapses the TreeNode.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method EndEdit Ends the editing of the tree node label.
Public method Supported by the .NET Compact Framework EnsureVisible Ensures that the tree node is visible, expanding tree nodes and scrolling the tree view control as necessary.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Expand Expands the tree node.
Public method Supported by the .NET Compact Framework ExpandAll Expands all the child tree nodes.
Public method Static FromHandle Returns the tree node with the specified handle and assigned to the specified tree view control.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework GetNodeCount Returns the number of child tree nodes.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Remove Removes the current tree node from the tree view control.
Public method Supported by the .NET Compact Framework Toggle Toggles the tree node to either the expanded or collapsed state.
Public method Supported by the .NET Compact Framework ToString Overridden.  
Top

  Name Description
Protected method Deserialize Loads the state of the TreeNode from the specified SerializationInfo.
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)
Protected method Serialize Saves the state of the TreeNode to the specified SerializationInfo.
Top

  Name Description
Explicit interface implementation Method System.Runtime.Serialization.ISerializable.GetObjectData Populates a serialization information object with the data needed to serialize the TreeNode.
Top

Community Additions

ADD
Show:
© 2014 Microsoft