office开发

VSTO Office 插件开发(1)

2016-10-28  本文已影响76人  本味Vi

控制CustomTaskPane开关
在Ribbon上添加一个checkbox用来控制侧边栏的隐藏显示
public void OnCheckRightBar(Office.IRibbonControl control, bool press)
{
Microsoft.Office.Tools.CustomTaskPane rightBarPane = Globals.ThisAddIn.CustomTaskPanes.Single();</br>
rightBarPane.Visible = press;
}

上一篇 下一篇

猜你喜欢

热点阅读