c# - EXCEL RIBBON Hide Individual Tabs
问题描述
Looking for code to Hide Individual Ribbon tabs. Not the entire ribbon. Seeking how to get to the Ribbon Tab collection using C# so I can process the object collection and hide certain tabs while leaving others visible.
解决方案
You should have a Variable in Globals, there you can access your group and set the visibility. Try something like
Globals.Ribbons.Ribbon1.group1.Visible = false;
to make certain groups invisible for example.
But with a bit of research you could have found that by yourself ;)
推荐阅读
- r - 连接列表的值以在 r 中创建 .csv 文件
- r - 在 R 中计算多行买卖的回报
- google-bigquery - IN 可以通过使用 struct 构造函数语法与多部分键一起使用吗?
- laravel - NotFoundHttpException 未在 Lumen 5.6 的控制器中捕获
- python - python aiohttp-sse 恰好在 6 个请求后超时
- java - 通过 BLE 向 MCU 发送字节数组
- xml - jaxb2 SAXParseException:发现无效内容
- node.js - Realm.io 未在 macos 上设置
- c# - 使用 WebClient 而不是 HttpClient
- python - Python - 使用“With Module as x”和 Threading.Timer