Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Compare Method, SortDescending Class

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

Class: SortDescending
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public int Compare(
    object x,
    object y );
Public Function Compare(
    ByVal x As Object,
    ByVal y As Object
  ) As Integer

Parameters

x

The first object to compare. This object can be cast into an ItemClass object.

y

The second object to compare. This object can be cast into an ItemClass object.

Return Value

The collating sequence. Return a value greater than zero to indicate that x is greater than y, equal to 0 to indicate that x and y are equal, a value less than zero to indicate x is less than y.

Comments

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

See Also SortDescending Class | Classes | SftTree/NET 2.0