Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 Excel VBA 转换为 C#(使用 Visual Studio .NET 中的 VSTO 项目)。下面的代码让我很困惑,因为 C# 中没有类似的函数。
result = Application.WorksheetFunction.Match(stringA, Range(stringB), 0) If result = 0 Then DoStuff
如何在 C# 中复制上述功能?谢谢
尝试这个
result = Application.WorksheetFunction.Match(stringA, Range(stringB), 0); if (iTemp_result == 0) { DoStuff(); }