SpreadJS Documentation
GC.Spread.CalcEngine.Functions Namespace / Function type / acceptsReference Method
Index of the argument.
In This Topic
    acceptsReference Method
    In This Topic
    Determines whether the function accepts Reference values for the specified argument.
    Syntax
    var instance = new GC.Spread.CalcEngine.Functions.Function(name,
                                                              minArgs,
                                                              maxArgs,
                                                              functionDescription,
                                                              functionDescription.description,
                                                              functionDescription.parameter,
                                                              functionDescription.parameter.name,
                                                              functionDescription.parameter.repeatable,
                                                              functionDescription.parameter.optional);
    var value; // Type: boolean
    value = instance.acceptsReference(argIndex);
    function acceptsReference( 
       argIndex : number
    ) : boolean;

    Parameters

    argIndex
    Index of the argument.

    Return Value

    true if the function accepts Reference values for the specified argument; otherwise, false.
    See Also

    Reference

    Function type