ComponentOne Editor for ASP.NET Web Forms
C1.Web.Wijmo.Controls.45 Assembly / C1.C1Schedule Namespace / AppointmentComparer Class / Compare Method
The first Appointment to compare.
The second Appointment to compare.

In This Topic
    Compare Method
    In This Topic
    Performs a comparison of two Appointment objects and returns a value indicating whether the one Appointment starts earlier, at the same time, or later than the other.
    Syntax
    'Declaration
     
    Public Overrides Function Compare( _
       ByVal x As Appointment, _
       ByVal y As Appointment _
    ) As System.Integer
    public override System.int Compare( 
       Appointment x,
       Appointment y
    )

    Parameters

    x
    The first Appointment to compare.
    y
    The second Appointment to compare.

    Return Value

    Less than zero - x occurs earlier than y. Zero - x and y occur at the same time. Greater than zero - x occurs later than y.
    See Also