Node
- 2 minutes to read
Nodes correspond to items within the hierarchical data. Nodes are represented by MVCxTreeViewNode objects. A node can have its own child nodes collection available via the MVCxTreeViewNode.Nodes property. These child nodes have their own children, etc.
The parent node for all nodes, displayed within TreeView, is called the root node. This is a special node that isn’t displayed. The collection of its child nodes can be accessed via the TreeViewSettings.Nodes property.
The node content can include a check box, an image and a text. The table below lists the main members that affect node content.
Visual element | Content Members | Appearance Members |
---|---|---|
Check box | Tree Tree | Tree Tree Tree Tree Tree Tree |
Image | Image | Tree Tree Tree |
Text | Tree | Tree |
A node has a set of properties responsible for a node’s state. The tables below list the main properties that specify that state.
States | Server Members | Description |
---|---|---|
Visible | Tree |
Gets or sets a value specifying the current node’s visibility. |
Enabled | Tree |
Gets or sets a value that indicates whether the node is enabled. |
Checked | Tree |
Gets or sets whether the node is checked. |
Check |
Tree |
Gets a value that specifies the node check state. |
Expanded | Tree |
Gets or sets whether the node is expanded. |