Share via


_CommandBarButton.Enabled Property

Returns or sets a value that indicates 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 _CommandBarButton
Dim value As Boolean

value = instance.Enabled

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

Property Value

Type: System.Boolean

Implements

CommandBarControl.Enabled

Remarks

If you set the Enabled property to True, the application determines the state of the command bar control; setting it to False will force the control to be disabled.

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Enabled Overload

Microsoft.Office.Core Namespace