[]
        
(Showing Draft Content)

GrapeCity.CalcEngine.FunctionResolver.AddFunction

AddFunction Method

AddFunction(Function)

Adds a new user-defined custom function to the model for use in formulas.

Declaration
public void AddFunction(Function function)
Public Sub AddFunction([function] As [Function])
Parameters
Type Name Description
Function function

Specifies the user-defined Function object to add

Remarks

User-defined Function class must be marked with the Serializable attribute or an exception occurs if the data model is saved to view state, a file, or otherwise serialized.

Exceptions
Type Condition
ArgumentNullException

No function is specified; function is a null reference (Nothing in Visual Basic)