2017-04-24 46 views

回答

1

需要使用command标记,并定义了getEnabled属性

上午。例如:

<?xml version="1.0" encoding="UTF-8"?> 
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> 
    <commands> 
    <command idMso="Permissions" getEnabled="OnGetEnabled" /> 
    </commands> 
</customUI> 

您可以重新利用内置的功能区控件,请参阅Temporarily Repurpose Commands on the Office Fluent Ribbon以获取更多信息。

名单内置可在下列文件中找到控件ID:

相关问题