Vcl.ComCtrls.TCustomTreeView.CanExpand

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanExpand(Node: TTreeNode): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanExpand(TTreeNode* Node);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Node expand event dispatcher.

CanExpand is called automatically whenever an attempt is made to expand the node specified by the Node parameter. CanExpand returns true if node can be expanded, false otherwise.

If there is no OnExpanding event handler, CanExpand returns true.

Override this method to make additional, class-specific responses in addition to the OnExpanding event or to suppress the OnExpanding event.

See Also