Aspose::Cells::WorksheetCollection::RegisterAddInFunction method

WorksheetCollection::RegisterAddInFunction(const U16String&, const U16String&, bool) method

Adds addin function into the workbook.

int32_t Aspose::Cells::WorksheetCollection::RegisterAddInFunction(const U16String &addInFile, const U16String &functionName, bool lib)
ParameterTypeDescription
addInFileconst U16String&the file contains the addin functions
functionNameconst U16String&the addin function name
libboolwhether the given addin file is in the directory or sub-directory of Workbook Add-In library. This flag takes effect and makes 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.

ReturnValue

ID of the data which contains given addin function

See Also

WorksheetCollection::RegisterAddInFunction(const char16_t*, const char16_t*, bool) method

Adds addin function into the workbook.

int32_t Aspose::Cells::WorksheetCollection::RegisterAddInFunction(const char16_t *addInFile, const char16_t *functionName, bool lib)
ParameterTypeDescription
addInFileconst char16_t*the file contains the addin functions
functionNameconst char16_t*the addin function name
libboolwhether the given addin file is in the directory or sub-directory of Workbook Add-In library. This flag takes effect and makes 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.

ReturnValue

ID of the data which contains given addin function

See Also

WorksheetCollection::RegisterAddInFunction(int32_t, const U16String&) method

Adds addin function into the workbook.

U16String Aspose::Cells::WorksheetCollection::RegisterAddInFunction(int32_t id, const U16String &functionName)
ParameterTypeDescription
idint32_tID of the data which contains addin functions, can be got by the first call of RegisterAddInFunction(string, string, bool) for the same addin file.
functionNameconst U16String&the addin function name

ReturnValue

URL of the addin file which contains addin functions

See Also

WorksheetCollection::RegisterAddInFunction(int32_t, const char16_t*) method

Adds addin function into the workbook.

U16String Aspose::Cells::WorksheetCollection::RegisterAddInFunction(int32_t id, const char16_t *functionName)
ParameterTypeDescription
idint32_tID of the data which contains addin functions, can be got by the first call of RegisterAddInFunction(string, string, bool) for the same addin file.
functionNameconst char16_t*the addin function name

ReturnValue

URL of the addin file which contains addin functions

See Also