Skip to main content
A newer version of this page is available. .

TcxTreeView Class

Represents the tree view control.

Declaration

TcxTreeView = class(
    TcxCustomTreeView
)

Remarks

Tree view controls are used to display information arranged in hierarchical structures. Data is displayed by means of nodes that can be represented by text labels together with images. Each node can have a set of child nodes, which can have their own children, etc. This forms the tree structure.

The primary features introduced by cxTreeView are:

Changing the expanded state of nodes to show or hide their children. See the Expanding and Collapsing Tree View Nodes topic for details;

Selecting individual or multiple nodes. Refer to the Selecting Tree View Nodes topic for more information on this feature;

Allowing end-users to edit node captions at runtime. This feature is covered in the Allowing End-Users to Edit Tree Node Captions topic;

Custom painting nodes or the entire control. Please refer to the OnCustomDraw and OnCustomDrawItem event descriptions for details;

In addition, what differentiates the TcxTreeView control from the standard TTreeView control is advanced style support (the same style support provided by the ExpressQuantumGrid and Editors Library). It is implemented via the Style, StyleDisabled, StyleFocused and StyleHot properties of the control. Using this property, you can customize the style applied to elements of the control, change its look and feel and apply native painting, if supported.

All the functionality provided by the TcxTreeView control is implemented by its ancestor – the TcxCustomTreeView class. The TcxTreeView class simply publishes certain properties and events.

See Also