Share via


CommandBarControl.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 CommandBarControl
Dim value As Boolean

value = instance.Enabled

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

Property Value

Type: System.Boolean

Remarks

This property returns True if the specified command bar control is enabled; False if 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

CommandBarControl Interface

CommandBarControl Members

Microsoft.Office.Core Namespace