以编程方式禁用 outlook compose window 功能区中的现有按钮
Programmaticaly disable existing button in outlook compose window ribbon
我正在用 c# 编写 outlook 加载项。我想在撰写新电子邮件时禁用 "Options" 选项卡中的 "Permissions" 按钮。
我目前正在使用 Addin Express 创建 outlook 加载项
您需要使用定义了 getEnabled
属性的 command
标签。例如:
<?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列表可以在以下文档中找到:
我正在用 c# 编写 outlook 加载项。我想在撰写新电子邮件时禁用 "Options" 选项卡中的 "Permissions" 按钮。
我目前正在使用 Addin Express 创建 outlook 加载项
您需要使用定义了 getEnabled
属性的 command
标签。例如:
<?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列表可以在以下文档中找到: