_DTE.CommandBars _DTE.CommandBars _DTE.CommandBars _DTE.CommandBars _DTE.CommandBars Property

Definition

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

public:
 property System::Object ^ CommandBars { System::Object ^ get(); };
public:
 property Platform::Object ^ CommandBars { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(108)]
[get: System.Runtime.InteropServices.DispId(108)]
public object CommandBars { get; }
member this.CommandBars : obj
Public ReadOnly Property CommandBars As Object
Property Value

Examples

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