【发布时间】:2018-01-08 21:12:26
【问题描述】:
我有一个功能区 xml,它添加了一个按钮并具有某些功能。但是我必须在 Thisaddin_startup() 中编写哪些 C# 行才能使按钮在启动时在 Outlook 中可用?如果我运行该项目,我将无法在 Outlook 插件中看到任何按钮。
public partial class ThisAddIn
{
EpicTest obj = new EpicTest();
Outlook.Inspectors inspectors;
Outlook.Application application = new Outlook.Application();
private Outlook.Explorer explorer = null;
private void ThisAddIn_Startup(object sender, EventArgs e)
{
}
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return new EpicTest();
}
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
void timerDelay_Tick(object sender, EventArgs e)
{
}
【问题讨论】:
标签: c# vsto outlook-addin