我正在以 xml 格式扩展 Outlook 2010 中为附件显示的上下文菜单。到目前为止,我有一个按钮和一个 onAction 事件的处理程序。谁能帮助我如何从这里获取当前选择的附件?
最佳答案
好的,知道了。 http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_AttachmentContextMenu
说
IRibbonControl.Context
AttachmentSelection object
所以 =>
var attachmentSelection = (control.Context as AttachmentSelection).OfType<Attachment>();
关于c# - 扩展 Outlook 2010 附件上下文菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7316083/