Back to Devexpress

Node

vcl-170018-expressquantumtreelist-visual-elements-node.md

latest4.4 KB
Original Source

Node

  • Jul 29, 2024
  • 2 minutes to read

A node visualizes a single data store record. Each node contains data cells used for displaying the record’s values. In group nodes, a data cell that belongs to the categorized column is spanned over the entire node.

A hierarchy of nodes reflects the self-referencing relationship of the persistent data.

A tree list provides different ways to build up the View with nodes:

Along with the data cells, the node also contains the following visual elements (from left to right):

ElementDescription
Node IndicatorInforms an end-user about focused and selected nodes. It allows an end-user to focus or select nodes, expand or collapse nodes, and also move nodes in the same nesting level.
Expand ButtonIt is used to expand or collapse parent nodes.
Check Box (Radio Button)Optional element. It is used to check or uncheck nodes.
State ImageOptional element. Informs about specific node states.
Select ImageOptional element. Informs whether the node is selected or not.
PreviewOptional element. Displays large chunks of non-editable information.
Drop IndicatorOptional element. Suggests the resulting drop position for a node being dragged, relative to a node under the mouse pointer.

In code, each node is represented by an instance of one of the following classes:

The table below lists the main properties that relate to nodes.

|

Visibility

|

The node’s Visible property.

| |

Appearance

|

The TreeList control’s Styles.ContentEven, Styles.ContentOdd, Styles.UseOddEvenStyles, Styles.Preview, Styles.HotTrack, and Styles.IncSearch properties.

To dynamically customize style settings, handle the TreeList control’s Styles.OnGetNodeIndentStyle, Styles.OnGetContentStyle, Styles.OnGetPreviewStyle and Styles.OnGetHotTrackStyle events.

| |

Custom Draw Event

|

The TreeList control’s OnCustomDrawIndentCell, OnCustomDrawDataCell and OnCustomDrawPreviewCell events.

| |

HitTest Information

|

The TreeList control’s HitTest.HitAtNode property.

| |

Contents

|

The node’s Values property.

| |

Bounds

|

The node’s DisplayRect method.

|