WorksheetCollectionRegisterAddInFunction Method (String, String, Boolean)

Adds addin function into the workbook

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public int RegisterAddInFunction(
	string addInFile,
	string functionName,
	bool lib
)

Parameters

addInFile
Type: SystemString
the file contains the addin functions
functionName
Type: SystemString
the addin function name
lib
Type: SystemBoolean
whether the given addin file is in the directory or sub-directory of Workbook Add-In library. This flag takes effect and mkes difference when given addInFile is of relative path: true denotes the path is relative to Add-In library and false denotes the path is relative to this Workbook.

Return Value

Type: Int32
ID of the data which contains given addin function
See Also