CommandBar::Enabled Property

 

Determines whether the command bar is enabled.

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

[DispIdAttribute(1610874885)]
property bool Enabled {
	[DispIdAttribute(1610874885)]
	bool get();
	[DispIdAttribute(1610874885)]
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the command bar is enabled, otherwise false.

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.

Return to top
Show: