标签:
以Excel插件为例:
1. ActionPane
创建 ThisWorkbook 项目
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
{
this.ActionsPane.Controls.Add(new UserControl());//添加自定义窗口
}
2.CustomTaskPane
CustomTaskPane ctp = Globals.ThisAddIn.CustomTaskPanes.Add(new UserControl1(), "导航");
ctp.DockPosition = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionLeft;
ctp.Visible = true;
VSTO 开发中 应用ActionPane、CustomTaskPane
标签:
原文地址:http://www.cnblogs.com/valor-xh/p/5808666.html