NetXP 3.0 Reference

ListBarItem.CompareTo Method 

Compares this object with another object of the same type. The implementation compares the captions of the items to allow items to be sorted alphabetically.

[Visual Basic]
NotOverridable Public Function CompareTo( _
   ByVal obj As Object _
) As Integer Implements _
   IComparable.CompareTo
[C#]
public int CompareTo(
   object obj
);

Parameters

obj
Another ListBarItem object

Return Value

A 32-bit signed integer that indicates the relative order of the comparands. The return value has these meanings: < 0: This instance is less than obj. 0: This instance is equal to obj. > 0: This instance is greater than obj.

Implements

IComparable.CompareTo

See Also

ListBarItem Class | NETXP.Controls.Bars Namespace