This documentation is archived and is not being maintained.

CommandBarPopup.Enabled Property 

Determines if the specified command bar control is enabled.

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

'Usage
Dim commandBarPopup1 As CommandBarPopup

Dim returnValue As Boolean
returnValue = commandBarPopup1.Enabled

Dim sampleValue As Boolean
commandBarPopup1.Enabled = sampleValue

bool Enabled {get; set;}
public boolean get_Enabled();
public void set_Enabled(boolean);
function get Enabled() : Boolean;
function set Enabled(Boolean);

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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: