'Declaration
Public Overridable Function CompareElements( _
ByVal As Object, _
ByVal As Object, _
ByRef As Integer _
) As Boolean
'Usage
Dim instance As GridData
Dim obj1 As Object
Dim obj2 As Object
Dim result As Integer
Dim value As Boolean
value = instance.CompareElements(obj1, obj2, result)
public virtual bool CompareElements(
object ,
object ,
ref int
)
public: virtual bool CompareElements(
Object* ,
Object* ,
ref int
)
public:
virtual bool CompareElements(
Object^ ,
Object^ ,
int%
)
Parameters
- obj1
- First object to compare.
- obj2
- Second object to compare.
- result
- Comparison result. -1 if obj1 < obj2, 0 if obj1 == obj2, 1 if obj1 > obj2.
Return Value
Should return true, if the event was handled (or custom comparison has been performed in any way).
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