Skip to main content
Tab

TreeViewNode Class

Represents an individual node within an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public class TreeViewNode :
    CollectionItem,
    IEnumerable,
    IHierarchyData

Remarks

The TreeViewNode class implements the functionality of an individual node within the ASPxTreeView control. Instances of the TreeViewNode class are maintained within the TreeViewNode.Nodes collection of each node, and within the ASPxTreeView.Nodes collection of an ASPxTreeView control. Individual nodes can be accessed and manipulated (added or deleted) by using the means provided by the TreeViewNodeCollection class, which is exposed via these Nodes properties.

TreeView - TreeViewNode

Use properties of the TreeViewNode class to specify the appearance and behavior of an individual node. You can define the TreeViewNode.Name, TreeViewNode.Text, TreeViewNode.Image, and TreeViewNode.ToolTip properties to specify the node’s name, caption text, image displayed in the item, and the tooltip. Specify the TreeViewNode.NavigateUrl and TreeViewNode.Target properties to set the URL to which the client web browser navigates when an end user clicks the node, and the window or frame in which to display the content.

The states of a node can be specified via the TreeViewNode.Visible, TreeViewNode.Enabled, ASPxTreeView.SelectedNode, TreeViewNode.Checked, and TreeViewNode.Expanded properties.

Note that the TreeViewNode class has a client-side equivalent - an object of the ASPxClientTreeViewNode type.

See Also