ComponentOne GanttView for WinForms
Compare Method (TaskComparer)

C1.Win.C1GanttView.4 Assembly > C1.Win.C1GanttView Namespace > TaskComparer Class : Compare Method
The first Task to compare.
The second Task to compare.
Compares two tasks and returns a value indicating whether one is less than, equal to, or greater than the other.
Syntax
'Declaration
 
Public Function Compare( _
   ByVal x As Task, _
   ByVal y As Task _
) As System.Integer
public System.int Compare( 
   Task x,
   Task y
)

Parameters

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

Return Value

A signed integer that indicates the relative values of x and y; less than zero: x is less than y, zero: x equals y; greater than zero: x is greater than y.
See Also

Reference

TaskComparer Class
TaskComparer Members