Table of contents
TOC
折叠目录
展开目录

CommandBars.AdaptiveMenus 属性 (办公室)CommandBars.AdaptiveMenus Property (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

此属性可选中或取消选中指定 Microsoft Office 中菜单是完全显示还是按个性化方式显示的选项的复选框控件。可读写。This property checks or unchecks the check box control for the option to show menus in Microsoft Office as full or personalized. Read/write.

请注意 已通过 Microsoft Office 流畅的用户界面的新功能区组件取代某些 Microsoft Office 应用程序中的命令栏使用。有关更多信息,请搜索帮助关键字"功能区"。Note The use of CommandBars in some Microsoft Office applications has been superseded by the new ribbon component of the Microsoft Office Fluent user interface. For more information, search Help for the keyword "ribbon."

语法Syntax

表达式AdaptiveMenusexpression. AdaptiveMenus

表达式_一个表示命令栏对象的变量。_expression A variable that represents a CommandBars object.

注解Remarks

如果 Microsoft Office 中的所有应用程序启用自适应菜单,则为True 。读/写boolean 类型的值Is True if adaptive menus are enabled for all applications in Microsoft Office. Read/write Boolean.

在任意应用程序中执行下列操作均可设置此控件:This control is set in any application by doing the following:

  1. 工具菜单上选择自定义On the Tools menu, select Customize.

  2. 选择选项选项卡。Select the Options tab.

  3. 始终显示整个菜单选项位于个性化菜单和工具栏部分。The Always show full menus option is located in the Personalized Menus and Toolbars section.

示例Example

本示例为 Microsoft Office 中的所有命令栏(其中包括自定义命令栏及其上的自定义命令控件)设置了三个选项。This example sets three options for all command bars in Microsoft Office, including custom command bars and the controls on them.

With CommandBars 
    .LargeButtons = True  
    .DisplayFonts = True  
    .AdaptiveMenus = True  
End With

另请参阅See also

概念Concepts

命令栏对象CommandBars Object

其他资源Other resources

命令栏对象成员CommandBars Object Members

© 2018 Microsoft