Vcl.ComCtrls.TTreeView.OnCompare

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCompare: TTVCompareEvent read FOnCompare write FOnCompare;

C++

__property OnCompare;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TTreeView

Description

Occurs when two nodes must be compared during a sort of the nodes in the tree view.

Vcl.ComCtrls.TTreeView.OnCompare inherits from Vcl.ComCtrls.TCustomTreeView.OnCompare. All content below this line refers to Vcl.ComCtrls.TCustomTreeView.OnCompare.

Occurs when two nodes must be compared during a sort of the nodes in the tree view.

Write an OnCompare event handler to customize the sort order of the nodes in the tree view. If an OnCompare event handler is not provided, tree view nodes are sorted alphabetically, based on their labels.

OnCompare is an event handler of type Vcl.ComCtrls.TTVCompareEvent.

See Also