如何在 Excel 插件中添加 "contextual menu command"

How to add the "contextual menu command" in Excel addin

link 显示了 "contextual menu command" 示例。我已经搜索过了,但找不到。知道它的示例代码会很棒。此外,平台列表支持这一点。谢谢

https://github.com/OfficeDev/Office-Add-in-UX-Design-Patterns/blob/master/Helpful%20Templates/AddIn_Template_Excel_Desktop_reference.pdf

这是您要查找的示例:https://github.com/OfficeDev/Office-Add-in-Commands-Samples/blob/master/Excel/Manifest/ExcelAddinWithCommandsOnDataTab.xml。它展示了如何让您的加载项使用上下文命令(出现在桌面版 Office 的右键单击菜单上)。

相关的 xml 元素是 <ExtensionPoint xsi:type="ContextMenu">

-Michael Saunders,Office 加载项项目经理