Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxTreeViewNodeCompareProc Type

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 TdxTreeViewNode

The first target tree node.

ANode2 TdxTreeViewNode

The second target tree node.

AData TdxNativeInt

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