Version

RegisterUserDefinedFunction Method (Workbook)

Syntax
'Declaration
 
Public Function RegisterUserDefinedFunction( _
   ByVal userDefinedFunction As ExcelCalcFunction _
) As Boolean
public bool RegisterUserDefinedFunction( 
   ExcelCalcFunction userDefinedFunction
)

Parameters

userDefinedFunction
User defined function instance to register

Return Value

Returns true if the type was registered successfully, else false if the registration failed
Remarks

Users can build custom functions used in formulas by sub-classing the Infragistics.Documents.Excel.CalcEngine.ExcelCalcFunction class. Once the derived class is instantiated it must be registered by using the RegisterUserDefinedFunction method before being available and referenced by a formulas. Users can build a library of functions packaged in an assembly and register all the functions within the assembly by using the RegisterUserDefinedFunctionLibrary method.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also