Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#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