Share via


CommandBarPopup.Enabled Property

Determines if the specified command bar control is enabled.

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

Syntax

'Declaration
Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As CommandBarPopup
Dim value As Boolean

value = instance.Enabled

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

Property Value

Type: System.Boolean

Implements

CommandBarControl.Enabled

Remarks

This property returns True if the specified command bar control is enabled; False if it is disabled.

For built-in controls, if you set the Enabled property to True, the application determines its state, but setting it to False will force it to be disabled.

See Also

Reference

CommandBarPopup Interface

CommandBarPopup Members

Enabled Overload

Microsoft.Office.Core Namespace