New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class DateTimeComparer

Inheritance: objectDateTimeComparer

Constructors

Initializes a new instance of the DateTimeComparer class.

C#
public DateTimeComparer(bool descending)
Parameters:descendingbool

if set to true [descending].

C#
public DateTimeComparer(RadScheduler scheduler, bool descending)
Parameters:schedulerRadSchedulerdescendingbool
C#
public DateTimeComparer(RadScheduler scheduler)
Parameters:schedulerRadScheduler

Fields

C#
public bool compareByEndValue

Methods

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

C#
public int Compare(AppointmentElement x, AppointmentElement y)
Parameters:xAppointmentElement

The first object to compare.

yAppointmentElement

The second object to compare.

Returns:

int

Value Condition Less than zerox is less than y.Zerox equals y.Greater than zerox is greater than y.