Spread Windows Forms 17
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / IValue Interface / CompareTo Method
An EvaluationContext object indicates the evaluation context.
An IPrimitiveValue object idnicates the value to compare with.


In This Topic
    CompareTo Method (IValue)
    In This Topic
    Compares this instance to a specified IPrimitiveValue object and returns an indication of their relative values.
    Syntax
    'Declaration
     
    
    Function CompareTo( _
       ByVal context As IEvaluationContext, _
       ByVal value As IPrimitiveValue _
    ) As Integer
    'Usage
     
    
    Dim instance As IValue
    Dim context As IEvaluationContext
    Dim value As IPrimitiveValue
    Dim value As Integer
     
    value = instance.CompareTo(context, value)

    Parameters

    context
    An EvaluationContext object indicates the evaluation context.
    value
    An IPrimitiveValue object idnicates the value to compare with.

    Return Value

    A signed number indicating the relative values of this instance and value.Return Value Description Less than zero This instance is less than value. Zero This instance is equal to value. Greater than zero This instance is greater than value.-or- value is null.
    See Also