New to Telerik UI for WinForms? Start a free 30-day trial

Orders month-view appointments by effective day count (longer spans first), then by start time and duration. Identical intervals use the scheduler's custom comparer when available, or the appointment summary otherwise.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class MonthViewEventsComparer

Inheritance: objectMonthViewEventsComparer

Constructors

Initializes a comparer that uses the scheduler's custom appointment comparer to break interval ties.

C#
public MonthViewEventsComparer(RadScheduler scheduler)
Parameters:schedulerRadScheduler

The scheduler whose optional appointment comparer is used for ties.

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.