Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

WorkbookFunctions.OverrideFunction(String, ICustomFunction, Boolean) Method

Replaces the built-in function specified by its name with a custom function.

Namespace: DevExpress.Spreadsheet.Functions

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

void OverrideFunction(
    string name,
    ICustomFunction function,
    bool skipIfExists
)

Parameters

Name Type Description
name String

A name of the function to replace.

function ICustomFunction

An ICustomFunction descendant that is the custom function.

skipIfExists Boolean

true, to cancel the function replacement if the built-in function with the specified name exists; otherwise, false.

Remarks

Use this OverrideFunction method overload with the skipIfExists parameter set to true to add a custom implementation of the built-in function not currently supported by the Spreadsheet Suite. When the function becomes available in future versions, it won’t be replaced, so the native implementation will be used instead of a custom one.

See Also