Condividi tramite


CommandBar.Enabled Property

Determines whether the command bar is enabled.

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

Syntax

'Dichiarazione
Property Enabled As Boolean
    Get
    Set
'Utilizzo
Dim instance As CommandBar
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 command bar is enabled, otherwise false.

Remarks

For command bars that are menu bars, the values of the properties Enabled and Visible are synchronized. For all other command bars, if a command bar is not Enabled, it is not Visible.

.NET Framework Security

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.VisualStudio.CommandBars Namespace