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

TdxTreeViewNodes Class

A tree node container in the Tree View.

Declaration

TdxTreeViewNodes = class(
    TdxTreeViewPersistent
)

Remarks

The class members allow you to do the following:

The Tree View’s Items property references a TdxTreeViewNodes object.

Refer to the following topic for information on how to use a tree node container: Tree View Control.

Example

The following code checks all nodes in the Tree View control that have child nodes:

var
  ANode: TdxTreeViewNode;
begin
  dxTreeViewControl1.BeginUpdate;
  for ANode in dxTreeViewControl1.Items do
    ANode.Checked := ANode.Count > 0;
  dxTreeViewControl1.EndUpdate;
end;

Check Parent Nodes

Note

A Tree View control shows node checkboxes if the control’s OptionsView.ShowCheckBoxes property is set to True.

Inheritance

See Also