我创建了一个导出到Excel的按钮,该按钮适用于Mac和Windows。现在我想隐藏列表功能区中的现有“导出到Excel”按钮(仅限列表而不是库)。 我写了自定义动作xml,但它没有删除任何东西。 这是我的xml
<CustomAction
Id="RemoveRibbonButton"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.List.Actions.ExportToSpreadsheet-Large" />
</CommandUIDefinitions>
</CommandUIExtension>
我将此附加到现有的添加按钮的xml。那个工作正常。 知道什么是无效的。
答案 0 :(得分:1)
问题解决了 在xml中替换它 &lt; Location =“Ribbon.List.Actions.ExportToSpreadsheet”/&gt;