Returns the execution environment this function belongs to.
SheetXL exposes functions from multiple environments — the formula calculation
engine and the macro/scripting runtime — through the same IFunction interface.
The context identifier distinguishes them and determines which argument types and
calling conventions apply. Returns null for standard formula functions.
Contains type information needed to safely execute the function.
Returns user-facing information about the function.
Optionallocale: stringThe name of the function.
Indicates whether the function is a built-in function.
Indicates whether the function is a LAMBDA rather than a built-in or registered function.
Two kinds of function answer true:
LAMBDA(…). It is reachable by name like any other
function, so signature help and function lookups can describe it: its parameters are the
lambda's, and its summary is the name's comment, or the name's formula when it has no
comment. A formula calls it through the NAME, never through execute, which answers
#CALC!.LAMBDA passed as a value and received by
IFunctionArguments.getFunctionsAt. It has no name (getName is ''), its
parameters are the lambda's, and execute applies it.
A self-describing, type-safe, executable function.
Built-in and user-defined functions share this interface. It pairs the callable entry point (
execute) with type metadata to guarantee type safety and auto-coerce arguments, plus locale-specific copy for UI display and validation.Formula authors encounter
IFunctionwhen calling another function by name at evaluation time viaFormulaContext.getFunction, or when tooling introspects the function registry.See
UDF authoring guide for how to create and register functions.