是否可以在NetOffice中为多个mailItem提供自定义弹出菜单

时间:2016-01-13 15:11:28

标签: c# outlook office-interop netoffice

我的自定义弹出式上下文菜单仅在我的邮件列表中选择一封邮件时运行。有没有可以选择多个邮件选择?

<contextMenu idMso="ContextMenuMailItem">
  <menu id="customID" label="CustomPrg" getImage="logo_image2">
    <button id="btn1" onAction="TransferBtns_Click" getLabel="ArchiveLabel" imageMso="CopyToFolder"/>          
    <button id="btn2" onAction="AchivetoBtn_Click" getLabel="ArchiveLabelOp"  imageMso="CopyToFolder"/>
    <menuSeparator id="separatormnu"/>
    <splitButton id="btn3">
</contextMenu>

1 个答案:

答案 0 :(得分:1)

<contextMenus>    
  <contextMenu idMso="ContextMenuMultipleItems">
    <button id="MyContextMenuMultipleItems"
        label="ContextMenuMultipleItems"
        onAction="OnMyButtonClick"/>
  </contextMenu>  
</contextMenus>

view this link