Command Bars
A command bar is a menu bar or toolbar; from an object model perspective, these are represented by CommandBar
objects. Because menu bars and toolbars are hosted within a window, you reference specific CommandBar
objects via the Window
object through the Window.CommandBars
property. In turn, every CommandBar
plays host to controls such as buttons and drop-downs. Figure 14.5 shows the Solution Explorer tool window with its command bar highlighted.
Note
Unlike the Windows
collection, which holds only an instance of each open window, the CommandBars
collection holds instances for every ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.