Sdílet prostřednictvím


CommandBar.AdaptiveMenu Property

Determines if an individual menu is enabled to use adaptive menus.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property AdaptiveMenu As Boolean
    Get
    Set
'Usage
Dim instance As CommandBar
Dim value As Boolean

value = instance.AdaptiveMenu

instance.AdaptiveMenu = value
bool AdaptiveMenu { get; set; }

Property Value

Type: System.Boolean

Remarks

This property returns True if an individual menu is enabled to use adaptive menus; False if not.

This property will not function while the AdaptiveMenus property is set to False.

This property checks or unchecks the check box control for the option to show an individual menu as full or personalized. Only recently used submenus show up in a menu if this property is set to True. All submenus show up if this property is set to False.

This property works only when the specified command bar is the MSOBarTypePopup. A runtime error is returned when this property is used with another command bar type such as MSOBarTypeMenuBar.

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.Office.Core Namespace