Flexible TreeView 5.1.9 Help
CompareTo Method



The node to compare with.
Compares this instance with a specified node and returns an indication of their relative values.
Syntax
'Declaration
 
Public Overridable Function CompareTo( _
   ByVal pNode As Node _
) As Integer
'Usage
 
Dim instance As Node
Dim pNode As Node
Dim value As Integer
 
value = instance.CompareTo(pNode)
public virtual int CompareTo( 
   Node pNode
)
public:
virtual int CompareTo( 
   Node^ pNode
) 

Parameters

pNode
The node to compare with.

Return Value

Less than zero if this node should be placed below the specified node. Zero if this node is equal to the specified node. Greater than zero if this node should be placed above the specified node.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionpNode is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Node Class
Node Members

Send Feedback