将控件添加到现有的丝带组在Office(VSTO)丝带、控件、VSTO、Office

2023-09-05 02:06:17 作者:Cc°果冻

我找到如何将新组添加到一个现有的带状的例子不胜枚举,而这工作得很好。

I find numerous examples on how to add a new group to an existing ribbon, and this works just fine.

我想不通的是我怎么可以添加新的控件到现有组在现有的丝带。说我要添加自己的命令,将校对组中的查看选项卡上。

What I cannot figure out is how I can add new controls to an existing group on an existing ribbon. Say I want to add my own command to the "Proofing" group on the "Review" tab.

我开发这个在VS2010的Office2010中,但我想同样的方法将工作在Office 2007也是如此。

I'm developing this in VS2010 for Office2010, but I guess the same approach would work on Office 2007 as well.

任何指针或帮助是AP preciated,或者如果它是不可能做(没有太多的黑客)我可以接受这一点。

Any pointers or help is appreciated, or if it's not possible to do (without too much hacking) I can live with that as well.

推荐答案

不幸的是,这是不可能的。你可以只控制添加到自定义组在Office 2007/2010。

Unfortunately, this is not possible. You may only add controls to custom groups in Office 2007/2010.

内置组是真正不同的东西比自定义组,你可能会增加。例如,您将看到的例子,内置的群体,如药粥字体和段落格式方面表现不同来调整应用程序窗口。

The built-in groups are really a different thing than the custom groups that you may add. For example, you will see for example that the built-in groups such as the ones for font and paragraph formatting behave differently with respect to resizing the application window.

 
精彩推荐
图片推荐