Export (0) Print
Expand All

TreeNode Members

Represents a node in the TreeView control.

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

(see also Protected Constructors )
  Name Description
Public method 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

(see also Protected Properties )
  Name Description
Public property Checked Gets or sets a value that indicates whether the node's check box is selected.
Public property ChildNodes Gets a TreeNodeCollection collection that contains the first-level child nodes of the current node.
Public property DataBound Gets a value that indicates whether the node was created through data binding.
Public property DataItem Gets the data item that is bound to the control.
Public property DataPath Gets the path to the data bound to the node.
Public property Depth Gets the depth of the node.
Public property Expanded Gets or sets a value that indicates whether the node is expanded.
Public property ImageToolTip Gets or sets the ToolTip text for the image displayed next to a node.
Public property ImageUrl Gets or sets the URL to an image that is displayed next to the node.
Public property NavigateUrl Gets or sets the URL to navigate to when the node is clicked.
Public property Parent Gets the parent node of the current node.
Public property PopulateOnDemand Gets or sets a value that indicates whether the node is populated dynamically.
Public property SelectAction Gets or sets the event or events to raise when a node is selected.
Public property Selected Gets or sets a value that indicates whether the node is selected.
Public property ShowCheckBox Gets or sets a value that indicates whether a check box is displayed next to the node.
Public property Target Gets or sets the target window or frame in which to display the Web page content associated with a node.
Public property Text Gets or sets the text displayed for the node in the TreeView control.
Public property ToolTip Gets or sets the ToolTip text for the node.
Public property Value Gets or sets a non-displayed value used to store any additional data about the node, such as data used for handling postback events.
Public property ValuePath Gets the path from the root node to the current node.
Top

  Name Description
Protected property IsTrackingViewState Gets a value that indicates whether the node is saving changes to its view state.
Top

(see also Protected Methods )
  Name Description
Public method Collapse Collapses the current tree node.
Public method CollapseAll Collapses the current node and all its child nodes.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Expand Expands the current tree node.
Public method ExpandAll Expands the current node and all its child nodes.
Public method 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 GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Select Selects the current node in the TreeView control.
Public method ToggleExpandState Alternates between the expanded and collapsed state of the node.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Clone Creates a new instance of the TreeNode class with the properties of the current TreeNode instance.
Protected method 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 LoadViewState Loads the previously saved view state of the node.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method RenderPostText Allows control developers to add additional rendering to the node.
Protected method RenderPreText Allows control developers to add additional rendering to the node.
Protected method SaveViewState Saves the current view state of the node.
Protected method TrackViewState Marks the starting point at which to begin tracking and saving view state changes to the node.
Top

  Name Description
Explicit interface implementation Method System.ICloneable.Clone Creates a copy of the TreeNode object.
Explicit interface implementation Method System.Web.UI.IStateManager.LoadViewState Loads the node's previously saved view state.
Explicit interface implementation Method System.Web.UI.IStateManager.SaveViewState Saves the view state changes to a System.Object.
Explicit interface implementation Method System.Web.UI.IStateManager.TrackViewState Instructs the TreeNode object to track changes to its view state.
Explicit interface implementation Property System.Web.UI.IStateManager.IsTrackingViewState For a description of this member, see IsTrackingViewState.
Top

Community Additions

ADD
Show:
© 2014 Microsoft