简体   繁体   English

如何在 excel VSTO c# 的特定选项卡下获得内置控件?

[英]How to get built-in controls under particular tabs in excel VSTO c#?

I am working in excel VSTO add-in.我正在使用 excel VSTO 插件。

In excel, having built-in tabs, groups, and controls in the ribbon.在 excel 中,功能区中有内置的选项卡、组和控件。 I need to get the list of built-in controls under the View tab in c#.我需要在 c# 的 View 选项卡下获取内置控件的列表。 From that list, I need to set the value of visible/enable property for the controls.从该列表中,我需要为控件设置可见/启用属性的值。

在此处输入图像描述

Is there any way to achieve this?有什么办法可以做到这一点?

You can't manage built-in controls on the ribbon.您无法管理功能区上的内置控件。 The best what you could do is to repurpose built-in controls or build the ribbon from scratch.您可以做的最好的事情是重新利用内置控件或从头开始构建功能区。 Read more about repurposing built-in controls in the Temporarily Repurpose Commands on the Office Fluent Ribbon article. 在 Office Fluent 功能区上的临时重新调整命令用途一文中阅读有关重新调整内置控件用途的更多信息。

The Fluent UI (aka Ribbon UI) is described in depth in the following series of articles: Fluent UI(又名 Ribbon UI)在以下系列文章中有深入描述:

See Office 2016 Help Files: Office Fluent User Interface Control Identifiers for ribbon controls IDs.有关功能区控件 ID,请参阅Office 2016 帮助文件:Office Fluent 用户界面控件标识符

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

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