Back to Devexpress

TdxListViewCompareProc Type

vcl-dxlistview-e2824b65.md

latest1.4 KB
Original Source

TdxListViewCompareProc Type

A callback reference to a function that compares two list items.

Declaration

delphi
TdxListViewCompareProc = function(AItem1: TdxListItem; AItem2: TdxListItem; AData: TdxNativeInt): Integer;

Parameters

NameTypeDescription
AItem1TdxListItem

The first target list item.

| | AItem2 | TdxListItem |

The second target list item.

| | AData | TdxNativeInt |

Specifies a pointer to additional data for the custom comparison routine.

|

Referenced Class

TypeDescription
Integer

The result of the comparison.

|

Remarks

The following table lists the values that a comparison function can return:

ValueDescription
A negative integer valueAItem1 is positioned before AItem2.
0AItem1 is positioned before AItem2.
A positive integer valueAItem is positioned after AItem2.

The List View’s CustomSort function references the TdxListViewCompareProc type.

See Also

dxListView Unit