Back to Devexpress

TcxCompareEventsProc Type

vcl-cxschedulerstorage-c7b8c2de.md

latest1.4 KB
Original Source

TcxCompareEventsProc Type

Provides a callback reference.

Declaration

delphi
TcxCompareEventsProc = function(AEvent1: TcxSchedulerEvent; AEvent2: TcxSchedulerEvent): Integer;

Parameters

NameType
AEvent1TcxSchedulerEvent
AEvent2TcxSchedulerEvent

Referenced Class

Type
Integer

Remarks

The TcxCompareEventsProc type enables custom comparisons of the AEvent1 and AEvent2 user events to be made in a method that has the same signature as the TcxCompareEventsProc and will be called when the TcxSchedulerEventList.Sort method is invoked. Comparing is used in sorting operations in the TcxSchedulerEventList collection.

Note : The method implemented should return values as described below when comparing in ascending order:

ValueDescription
> 0 (positive)Item1 is less than Item2.
0Item1 is equal to Item2.
< 0 (negative)Item1 is greater than Item2.

See Also

cxSchedulerStorage Unit