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

TcxCompareEventsProc Type

Provides a callback reference.

#Declaration

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

#Parameters

Name Type
AEvent1 TcxSchedulerEvent
AEvent2 TcxSchedulerEvent

#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:

Value Description
> 0 (positive) Item1 is less than Item2.
0 Item1 is equal to Item2.
< 0 (negative) Item1 is greater than Item2.
See Also