共用方式為


CommandBarsClass.ActiveMenuBar Property

Gets the menu bar that is currently active.

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

Syntax

'宣告
Public Overridable ReadOnly Property ActiveMenuBar As CommandBar
    Get
'用途
Dim instance As CommandBarsClass
Dim value As CommandBar

value = instance.ActiveMenuBar
public virtual CommandBar ActiveMenuBar { get; }
public:
virtual property CommandBar^ ActiveMenuBar {
    CommandBar^ get ();
}
abstract ActiveMenuBar : CommandBar
override ActiveMenuBar : CommandBar
function get ActiveMenuBar () : CommandBar

Property Value

Type: Microsoft.VisualStudio.CommandBars.CommandBar
The CommandBar that is currently active.

Implements

_CommandBars.ActiveMenuBar

.NET Framework Security

See Also

Reference

CommandBarsClass Class

CommandBarsClass Members

Microsoft.VisualStudio.CommandBars Namespace