美文网首页office开发
VSTO Office 插件开发(1)

VSTO Office 插件开发(1)

作者: 本味Vi | 来源:发表于2016-10-28 17:53 被阅读76次

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

相关文章

网友评论

    本文标题:VSTO Office 插件开发(1)

    本文链接:https://www.haomeiwen.com/subject/wweeuttx.html