Back to Devexpress

TreeViewNode Class

aspnet-devexpress-dot-web-96d9882f.md

latest5.7 KB
Original Source

TreeViewNode Class

Represents an individual node within an ASPxTreeView control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class TreeViewNode :
    CollectionItem,
    IEnumerable,
    IHierarchyData
vb
Public Class TreeViewNode
    Inherits CollectionItem
    Implements IEnumerable,
               IHierarchyData

The following members return TreeViewNode objects:

Show 14 links

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.

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.

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IEnumerable

IHierarchyData

Inheritance

Object StateManager CollectionItem TreeViewNode TreeViewVirtualNode

BootstrapTreeViewVirtualNode

BootstrapTreeViewNode

MVCxTreeViewNode

See Also

TreeViewNode Members

Tree View Elements

Node

Tree View

DevExpress.Web Namespace