类 CustomFunction

java.lang.Object
com.grapecity.documents.excel.CustomFunction

public abstract class CustomFunction extends Object
Represents the base type for custom function.
  • 字段详细资料

  • 构造器详细资料

    • CustomFunction

      public CustomFunction(String name, FunctionValueType result)
      Initializes an instance of a custom function.
      参数:
      name - The name of the custom function.
      result - Specifies the return type for the custom function.
    • CustomFunction

      public CustomFunction(String name, FunctionValueType result, Parameter[] parameters)
      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

      public abstract Object evaluate(Object[] arguments, ICalcContext context)
      Calculate the function.
      参数:
      arguments - the value collection of the arguments
      context - the context of the calculation.
      返回:
      the result of the function.