...拥有了一个名为“Home”的命令分组(Category), 其中又包含了多个面板(Panel),每个面板中有一个或者多个命令按钮(Ribbon Button)。下面我 们就来看看如何在Ribbon Bar 上添加一个新的命令分组,然后在其中添加新的命令按钮以执行 相应的功能。
基于16个网页-相关网页
Ok - you are done! You can now access the Ribbon and the button that you added to the Ribbon in your code.
好了,都完成了,现在已经可以使用代码来访问功能区和功能区中的按钮了。
For example, you can create a callback method that is called when a user clicks a button on the Ribbon.
例如,您可以创建一个在用户单击功能区上的按钮时调用的回调方法。
Like a toolbar, the ribbon provides fairly direct and visual access to functions, though a user is sometimes required to change tabs to find the right button.
和工具栏一样,带条提供了相当直接和视觉化的功能访问途径,尽管使用者有时需要在单击标签后才可以发现所需的按钮。
应用推荐