Excel-DNA功能未显示说明和参数信息

问题描述 投票:0回答:1

我使用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

c# excel-dna
1个回答
2
投票

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

如果你想为参数设置IntelliSense,你可以使用Excel-DNA IntelliSense库 - https://github.com/Excel-DNA/IntelliSense

a

b

© www.soinside.com 2019 - 2024. All rights reserved.