c# - 扩展 Outlook 2010 附件上下文菜单

标签 c# outlook vsto

我正在以 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/

相关文章:

c# - DataTable.Load(FbDataReader) 不会将所有内容加载到 DataTable

c# - 以编程方式退出后台 View

c# - 为 Excel 功能区创建倒数计时器

c# - 如何使用 LINQ to SQL 执行 CROSS JOIN?

c# - 使用 .Net Framework 4.5 压缩图像

c# - 未找到以下命令 netsh

email - CRM 2011 outlook 客户端 - 强制设置

javascript - 带有签名 Javascript 的电子邮件

c# - Outlook MAPI 存储提供程序。管理?

c#-4.0 - 覆盖 Outlook 的默认发送功能