Extending the Oulook 2010 attachment context menu

喜欢而已 提交于 2019-12-10 10:14:19

问题


I am extending the contextmenu shown for attachments in Outlook 2010 in xml. So far i've got a button and a handler for the onAction event. Could anybody help me on how to get the currrently selected attachments from here?


回答1:


Ok, got it. http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_AttachmentContextMenu

says

IRibbonControl.Context

AttachmentSelection object

so =>

var attachmentSelection = (control.Context as AttachmentSelection).OfType<Attachment>();



来源:https://stackoverflow.com/questions/7316083/extending-the-oulook-2010-attachment-context-menu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!