TreeNode Members
.NET Framework 3.0
Represents a node in the TreeView control.
The following tables list the members exposed by the TreeNode type.
(see also
Protected Constructors
)
Top
| Name | Description | |
|---|---|---|
| TreeNode | Overloaded. Initializes a new instance of the TreeNode class. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Checked | Gets or sets a value that indicates whether the node's check box is selected. |
| ChildNodes | Gets a TreeNodeCollection collection that contains the first-level child nodes of the current node. |
| DataBound | Gets a value that indicates whether the node was created through data binding. |
| DataItem | Gets the data item that is bound to the control. |
| DataPath | Gets the path to the data bound to the node. |
| Depth | Gets the depth of the node. |
| Expanded | Gets or sets a value that indicates whether the node is expanded. |
| ImageToolTip | Gets or sets the ToolTip text for the image displayed next to a node. |
| ImageUrl | Gets or sets the URL to an image that is displayed next to the node. |
| NavigateUrl | Gets or sets the URL to navigate to when the node is clicked. |
| Parent | Gets the parent node of the current node. |
| PopulateOnDemand | Gets or sets a value that indicates whether the node is populated dynamically. |
| SelectAction | Gets or sets the event or events to raise when a node is selected. |
| Selected | Gets or sets a value that indicates whether the node is selected. |
| ShowCheckBox | Gets or sets a value that indicates whether a check box is displayed next to the node. |
| Target | Gets or sets the target window or frame in which to display the Web page content associated with a node. |
| Text | Gets or sets the text displayed for the node in the TreeView control. |
| ToolTip | Gets or sets the ToolTip text for the node. |
| 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. |
| ValuePath | Gets the path from the root node to the current node. |
| Name | Description | |
|---|---|---|
| IsTrackingViewState | Gets a value that indicates whether the node is saving changes to its view state. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Collapse | Collapses the current tree node. |
| CollapseAll | Collapses the current node and all its child nodes. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| Expand | Expands the current tree node. |
| ExpandAll | Expands the current node and all its child nodes. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Select | Selects the current node in the TreeView control. |
| ToggleExpandState | Alternates between the expanded and collapsed state of the node. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Clone | Creates a new instance of the TreeNode class with the properties of the current TreeNode instance. |
| 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) |
| LoadViewState | Loads the previously saved view state of the node. |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| RenderPostText | Allows control developers to add additional rendering to the node. |
| RenderPreText | Allows control developers to add additional rendering to the node. |
| SaveViewState | Saves the current view state of the node. |
| TrackViewState | Marks the starting point at which to begin tracking and saving view state changes to the node. |
| Name | Description | |
|---|---|---|
| System.ICloneable.Clone | Creates a copy of the TreeNode object. |
| System.Web.UI.IStateManager.LoadViewState | Loads the node's previously saved view state. |
| System.Web.UI.IStateManager.SaveViewState | Saves the view state changes to a System.Object. |
| System.Web.UI.IStateManager.TrackViewState | Instructs the TreeNode object to track changes to its view state. |
| System.Web.UI.IStateManager.IsTrackingViewState | For a description of this member, see IsTrackingViewState. |
Community Additions
ADD
Show: