TreeNode.ElementCompareTo (METH)ΒΆ
METHOD ElementCompareTo : INT
Compares this element with itfElement
.
Returns 0 if the elements are equal, < 0 if the element is less than itfElement
,
> 0 if the element is greater than itfElement
.
This method will be called from sorted collections (e.g. SortedList) to sort elements.
IMPORTANT: The underlying value to be compared with MUST NOT be changed during the lifecycle of the object.
- InOut:
Scope
Name
Type
Comment
Return
ElementCompareTo
INT
Input
itfElement
The element to compare