c# - 如何在“新邮件”按钮附近为 Outlook-Addin 创建一个复选框
问题描述
我想在发送按钮附近为“新邮件”创建一个复选框。
这是我的 CustomUI.xml 代码。
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns">
<group id="grpTabAddIns"
label="E-Mail2">
<button id="btnEinstellungenOeffnen"
label="Einstellungen"
getImage="GetImage"
showImage="true"
size="large"
supertip="Abrufen und Ändern der Einstellungen des E-Mail2 Add-Ins"
onAction="btnEinstellungenOeffnen_Click"/>
</group>
</tab>
</tabs>
</ribbon>
<contextMenus>
<contextMenu idMso="ContextMenuMailItem">
<button id="btnZuordnungContextMenu"
label=" Zuordnung erstellen/ändern"
getImage="GetImage"
showImage="true"
supertip=" Zuordnung erstellen/ändern"
onAction="btnZuordnung_Click"/>
</contextMenu>
</contextMenus>
</customUI>
是否可以在黄色的地方设置一个复选框?
解决方案
不它不是。功能区 UI 位于撰写区域的顶部。您可以在那里放置您的自定义 UI。
但是,您可以考虑将默认 Outlook 的 UI 替换为您自己的表单,您可以在其中自行放置 To、CC、BCC 和其他字段,只保留功能区 UI。Outlook 表单区域提供全部替换布局,该布局将整个 Outlook 表单替换为表单区域。
此外,您可以考虑使用Add-in Express 提供的Advanced Outlook 视图和表单区域。
推荐阅读
- python - 如何允许从网络负载均衡器到实例的流量?
- python - 如何预测训练数据集之外的数据
- python - 如何使用 python 脚本重新启动远程桌面?
- woocommerce - WooCommerce API 和产品图片上传
- java - 如何在活动中引用 layer-list.xml 中的项目
- angular - Angular/ABP:通过组件链接获取模块
- javascript - 为什么我的 svg 图像在 HTML 画布中模糊不清
- azure - Azure IoT-Hub Device Twin 与使用 DTDL 的 Azure 数字孪生:它们是补充还是替代?如何?
- indexing - 为什么需要引用索引?
- r - 为什么在 geom_boxplot 中使用 'varwidth=TRUE' 时我的箱线图没有正确对齐?