Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个单词插件,它使用的是 Ribbon.xml。
我可以使用 getVisible-Tag 禁用按钮。有没有办法禁用整个组(包含 9 个按钮)或者我必须在每个按钮上都这样做?
getVisible您可以使用回调隐藏或显示控件。要禁用控件,您需要改用getEnabled回调。不幸的是,该group控件没有提供enabledorgetEnabled属性。但是,您可能会发现组控制的visible或属性很有帮助。getVisible
getVisible
getEnabled
group
enabled
visible
在 MSDN 中的以下系列文章中阅读有关控件及其属性的更多信息: