_DTE.CommandBars Property

 

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

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

No code example is currently available or this language may not be supported.

Property Value

Type: System.Object

A CommandBars object.

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.

Sub CommandBarsExample()
  MsgBox(DTE.CommandBars.Count)
End Sub
Return to top
Show: