_DTE.CommandBars Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to the development environment's command bars.
public:
property System::Object ^ CommandBars { System::Object ^ get(); };
C++/CX
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
A CommandBars object.
- Attributes
VB
Sub CommandBarsExample()
MsgBox(DTE.CommandBars.Count)
End Sub
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.
Proizvod | Verzije |
---|---|
Visual Studio SDK | 2015, 2017, 2019 |