Excel-DNA 函数不显示描述和参数信息

Excel-DNA Function not showing description and parameter info

我使用 Excel-DNA 创建了一个简单的 UDF,如下所示:

  [ExcelFunction(Description = "Return something")]
    public static string ReturnSomething(string a, string b)
    {
        return a + " - " + b;
    }

当我转到 Excel 时,该功能有效,但没有显示说明或所需参数。如何让它们显示?

Image of my UDF

Image of an Excel built-in formula with parameters shown which is expected from my UDF

这是 Excel 中使用 Excel-DNA 构建的自定义函数的预期行为。描述仅显示在 Insert Function 对话框中。

如果您希望参数具有 IntelliSense,您可以使用 Excel-DNA IntelliSense library - https://github.com/Excel-DNA/IntelliSense