类 CustomFunction
java.lang.Object
com.grapecity.documents.excel.CustomFunction
Represents the base type for custom function.
-
字段概要
-
构造器概要
构造器说明CustomFunction
(String name, FunctionValueType result) Initializes an instance of a custom function.CustomFunction
(String name, FunctionValueType result, Parameter[] parameters) Initializes an instance of a custom function.CustomFunction
(String name, String description, FunctionValueType result, Parameter[] parameters) Initializes an instance of a custom function. -
方法概要
修饰符和类型方法说明abstract Object
evaluate
(Object[] arguments, ICalcContext context) Calculate the function.boolean
Gets whether to allow custom formula use cache.void
setIsVolatile
(boolean aVolatile) Sets whether to allow custom formula use cache.
-
字段详细资料
-
name
-
-
构造器详细资料
-
CustomFunction
Initializes an instance of a custom function.- 参数:
name
- The name of the custom function.result
- Specifies the return type for the custom function.
-
CustomFunction
Initializes an instance of a custom function.- 参数:
name
- The name of the custom function.result
- Specifies the return type for the custom function.parameters
- Specifies the parmeters for the custom function.
-
CustomFunction
public CustomFunction(String name, String description, FunctionValueType result, Parameter[] parameters) Initializes an instance of a custom function.- 参数:
name
- The name of the custom function.description
- The description of the custom function.result
- Specifies the return type for the custom function.parameters
- Specifies the parmeters for the custom function.
-
-
方法详细资料
-
getIsVolatile
public boolean getIsVolatile()Gets whether to allow custom formula use cache. -
setIsVolatile
public void setIsVolatile(boolean aVolatile) Sets whether to allow custom formula use cache. -
evaluate
Calculate the function.- 参数:
arguments
- the value collection of the argumentscontext
- the context of the calculation.- 返回:
- the result of the function.
-