Node
- 2 minutes to read
Nodes correspond to records in a data source and are represented by TreeListNode objects.
A node includes the following elements.
Data Cell(s)
The number of data cells depends on the number of visible columns (TreeListView.VisibleColumns).
Indent(s)
Indents specify an offset by which data cells are horizontally shifted to the right (to the left if RTL orientation is used). This is required to indicate nesting levels, display expand buttons and images. The number of indents that specify the offset depends on the node's nesting level, and whether or not the expand button and image are required to be displayed. In the image above for example, the root node has two indents that specify the offset of its data cells. First level nodes contain three indents, etc.
Expand Button
A node displays the expand button if it has child nodes.
Image
Node images can be explicitly specified using the TreeListNode.Image property or automatically obtained from the field in a data source with long binary data (its name is specified by the TreeListView.ImageFieldName property).
The image below illustrates node elements.
The table below lists the main properties affecting element behavior and appearance.
Characteristics | Members |
---|---|
Contents | Tree |
Image | Tree |
Image Visibility | Tree |
Indent | Tree |
Expand Button Visibility | Tree |