다음을 통해 공유


_CommandBarButton.Enabled Property

Determines whether the control is enabled.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

‘선언
Property Enabled As Boolean
    Get
    Set
‘사용 방법
Dim instance As _CommandBarButton
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
bool Enabled { get; set; }
property bool Enabled {
    bool get ();
    void set (bool value);
}
abstract Enabled : bool with get, set
function get Enabled () : boolean
function set Enabled (value : boolean)

Property Value

Type: System.Boolean
true if the control is enabled, otherwise false.

Implements

CommandBarControl.Enabled

Remarks

The enabled state is not preserved across sessions.

.NET Framework Security

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Microsoft.VisualStudio.CommandBars Namespace