System.Web.UI.WebControls.TreeNode Members

The members of System.Web.UI.WebControls.TreeNode are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class without text or a value.

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class using the specified text.

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class using the specified text and value.

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class using the specified text, value, and image URL.

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class using the specified text, value, image URL, navigation URL, and target.

Protected Constructors

Initializes a new instance of the System.Web.UI.WebControls.TreeNode class using the specified owner.

Public Properties

Checkedbool.

Gets or sets a value that indicates whether the node's check box is selected.

[read-only]
ChildNodesTreeNodeCollection.

Gets a System.Web.UI.WebControls.TreeNodeCollection collection that contains the first-level child nodes of the current node.

[read-only]
DataBoundbool.

Gets a value that indicates whether the node was created through data binding.

[read-only]
DataItemobject.

Gets the data item that is bound to the control.

[read-only]
DataPathstring.

Gets the path to the data bound to the node.

[read-only]
Depthint.

Gets the depth of the node.

ExpandedNullable<bool>.

Gets or sets a value that indicates whether the node is expanded.

ImageToolTipstring.

Gets or sets the ToolTip text for the image displayed next to a node.

ImageUrlstring.

Gets or sets the URL to an image that is displayed next to the node.

NavigateUrlstring.

Gets or sets the URL to navigate to when the node is clicked.

[read-only]
ParentTreeNode.

Gets the parent node of the current node.

PopulateOnDemandbool.

Gets or sets a value that indicates whether the node is populated dynamically.

SelectActionTreeNodeSelectAction.

Gets or sets the event or events to raise when a node is selected.

Selectedbool.

Gets or sets a value that indicates whether the node is selected.

ShowCheckBoxNullable<bool>.

Gets or sets a value that indicates whether a check box is displayed next to the node.

Targetstring.

Gets or sets the target window or frame in which to display the Web page content associated with a node.

Textstring.

Gets or sets the text displayed for the node in the System.Web.UI.WebControls.TreeView control.

ToolTipstring.

Gets or sets the ToolTip text for the node.

Valuestring.

Gets or sets a non-displayed value used to store any additional data about the node, such as data used for handling postback events.

[read-only]
ValuePathstring.

Gets the path from the root node to the current node.

Protected Properties

[read-only]
IsTrackingViewStatebool.

Gets a value that indicates whether the node is saving changes to its view state.

Public Methods

Clone() : object

Creates a new instance of the System.Web.UI.WebControls.TreeNode class with the properties of the current System.Web.UI.WebControls.TreeNode instance.

Collapse()

Collapses the current tree node.

CollapseAll()

Collapses the current node and all its child nodes.

Expand()

Expands the current tree node.

ExpandAll()

Expands the current node and all its child nodes.

Select()

Selects the current node in the System.Web.UI.WebControls.TreeView control.

ToggleExpandState()

Alternates between the expanded and collapsed state of the node.

Protected Methods

LoadViewState(object)

Loads the previously saved view state of the node.

RenderPostText(System.Web.UI.HtmlTextWriter)

Allows control developers to add additional rendering to the node.

RenderPreText(System.Web.UI.HtmlTextWriter)

Allows control developers to add additional rendering to the node.

SaveViewState() : object

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.

Explicitly Implemented Interface Members

ICloneable.Clone

Creates a copy of the System.Web.UI.WebControls.TreeNode object.

[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

For a description of this member, see System.Web.UI.IStateManager.IsTrackingViewState.

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 object.

System.Web.UI.IStateManager.TrackViewState

Instructs the System.Web.UI.WebControls.TreeNode object to track changes to its view state.