TdxTreeViewNodeCompareProc Type
In This Article
A callback reference to a function that compares two tree nodes.
#Declaration
Delphi
TdxTreeViewNodeCompareProc = function(ANode1: TdxTreeViewNode; ANode2: TdxTreeViewNode; AData: TdxNativeInt): Integer;
#Parameters
Name | Type | Description |
---|---|---|
ANode1 | Tdx |
The first target tree node. |
ANode2 | Tdx |
The second target tree node. |
AData | Tdx |
Specifies a pointer to additional data for the custom comparison routine. |
#Referenced Class
Type | Description |
---|---|
Integer | A result of the comparison. |
#Remarks
The following table lists the values that a comparison function can return:
Value | Description |
---|---|
A negative integer value | ANode1 is positioned above ANode2. |
0 | ANode1 is “equal” to ANode2. Both nodes retain their positions. |
A positive integer value | ANode1 is positioned below ANode2. |
The Tree View’s CustomSort function references the TdxTreeViewNodeCompareProc type.
See Also