_DTE.CommandBars Property

Definition

Gets a reference to the development environment's command bars.

C++/CX
public:
 property Platform::Object ^ CommandBars { Platform::Object ^ get(); };

Property Value

A CommandBars object.

Attributes

Examples

VB
Sub CommandBarsExample()  
  MsgBox(DTE.CommandBars.Count)  
End Sub  

Remarks

This class is a part of the Microsoft.VisualStudio.CommandBars namespace.

You can add or remove command bars to this collection by calling AddCommandBar. Please see the documentation for this method to find more information about command bars.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019