Vcl.ComCtrls.TTreeNode.HasChildren

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property HasChildren: Boolean read GetChildren write SetChildren;

C++

__property bool HasChildren = {read=GetChildren, write=SetChildren, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeNode

Description

Indicates whether a node has any children.

HasChildren is true if the node has subnodes, or false if the node has no subnodes. If ShowButtons of the tree view is true, and HasChildren is true, a plus (+) button will appear to the left of the node when it is collapsed, and a minus (-) button will appear when the node is expanded.

Note: If a node has no children, setting HasChildren to true will show a (+) plus button, but will not add any child nodes and the node cannot be expanded.

See Also