简体   繁体   English

将多行项目动态添加到功能区菜单 c#

[英]Add multiline items to ribbon menu c# dynamically

I want to add multiline item to ribbon menu (Microsoft.Office.Tools.Ribbon.RibbonMenu) in my office add-in like following image.我想在我的办公室插件中将多行项目添加到功能区菜单(Microsoft.Office.Tools.Ribbon.RibbonMenu),如下图所示。 but I don't know what these items should be?但我不知道这些项目应该是什么?

*RibbonButton doesn't support multiline Label. *RibbonButton 不支持多行 Label。

*RibbonLabel doesn't support variable font styles (like Bold and Normal). *RibbonLabel 不支持可变字体 styles(如粗体和正常)。

UPDATE: if these features are not supported, is there another component (say DevComponents, Telerik, ...) that supports them?更新:如果不支持这些功能,是否有其他组件(例如 DevComponents、Telerik、...)支持它们?

多行功能区项目

Unfortunately not all ribbon features are available for developers.不幸的是,并非所有功能区功能都可供开发人员使用。 There is no way for add-in developers to implement something like that unfortunately.不幸的是,插件开发人员无法实现类似的东西。

You can read more about available ribbon controls and their attributes in the following series of articles in MSDN:您可以在 MSDN 中的以下系列文章中阅读有关可用功能区控件及其属性的更多信息:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM