共用方式為


_CommandBars.ActiveMenuBar Property

Gets the menu bar that is currently active.

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

Syntax

'宣告
ReadOnly Property ActiveMenuBar As CommandBar
CommandBar ActiveMenuBar { get; }

Property Value

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

.NET Framework Security

See Also

Reference

_CommandBars Interface

Microsoft.VisualStudio.CommandBars Namespace