[]
Represents the base type for custom function.
public abstract class CustomFunction
Initializes an instance of a custom function.
public CustomFunction(string name, FunctionValueType result, Parameter[] parameters)
name
stringThe name of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
parameters
Parameter[]Specifies the parmeters for the custom function.
Initializes an instance of a custom function.
public CustomFunction(string name, FunctionValueType result)
name
stringThe name of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
Initializes an instance of a custom function.
public CustomFunction(string name, string description, FunctionValueType result, Parameter[] parameters)
name
stringThe name of the custom function.
description
stringThe description of the custom function.
result
FunctionValueTypeSpecifies the return type for the custom function.
parameters
Parameter[]Specifies the parmeters for the custom function.
Gets or sets whether to allow custom formula use cache.
public bool IsVolatile { get; set; }
Calculate the function.
public abstract object Evaluate(object[] arguments, ICalcContext context)
arguments
object[]the value collection of the arguments
context
ICalcContextthe context of the calculation.
the result of the function.