[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.ObjectItem.CompareValue

CompareValue Method

CompareValue(object, object)

Compare two values of object.

Declaration
protected override int CompareValue(object first, object second)
Protected Overrides Function CompareValue(first As Object, second As Object) As Integer
Parameters
Type Name Description
object first

An object to compare.

object second

An object to compare.

Returns
Type Description
int

A 32-bit signed integer indicating the lexical relationship between the two items being compared. Value Condition Less than zero indicates first is less than second. Zero first equals second. Greater than zero indicates first is greater than second.

Overrides
Exceptions
Type Condition
NotSupportedException

If the object is not compareable, throw exception.