_DTE.CommandBars Property

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

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

Syntax

'Declaration
ReadOnly Property CommandBars As Object
Object CommandBars { get; }
property Object^ CommandBars {
    Object^ get ();
}
abstract CommandBars : Object
function get CommandBars () : Object

Property Value

Type: System.Object
A CommandBars object.

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.

Examples

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

.NET Framework Security

See Also

Reference

_DTE Interface

EnvDTE Namespace