Vcl.ComCtrls.TCustomTreeView.CanCollapse
Delphi
function CanCollapse(Node: TTreeNode): Boolean; dynamic;
C++
DYNAMIC bool __fastcall CanCollapse(TTreeNode* Node);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Pending node collapse event dispatcher.
CanCollapse is called automatically whenever an attempt is made to collapse the node specified by the Node parameter. CanCollapse returns true if node can be collapsed, false otherwise.
If there is no OnCollapsing event handler, CanCollapse returns true.
Override this method to make additional, class-specific responses in addition to the OnCollapsing event or to suppress the OnCollapsing event.