Partilhar via


_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)]
public object CommandBars { [System.Runtime.InteropServices.DispId(108)] get; }
[<System.Runtime.InteropServices.DispId(108)>]
[<get: System.Runtime.InteropServices.DispId(108)>]
member this.CommandBars : obj
Public ReadOnly Property CommandBars As Object

Property Value

A CommandBars object.

Attributes

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